Skip to content
Discussion options

You must be logged in to vote
server {
    listen 80;
    listen 443 ssl http2;
    listen [::]:443 ssl;
    server_name hostname;

    ssl_certificate cert.crt;
    ssl_certificate_key cert.key;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
    underscores_in_headers on;

    location / {
        proxy_pass http://codex_backend;
        proxy_http_version 1.1;
        proxy_set_header Connection "";
        proxy_buffering off;
        proxy_request_buffering off;
        proxy_next_upstream off;
        proxy_ssl_verify off;
        proxy_connect_timeout 30s;
        proxy_send_timeout 3600s;
        proxy_read_timeout 3600s;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
  …

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@likeaixxx
Comment options

@likeaixxx
Comment options

@likeaixxx
Comment options

Answer selected by luispater
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2062 on March 14, 2026 18:23.