Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

##/etc/nginx/proxy.conf
No Format
cat << 'EOF' >/etc/nginx/proxy>proxy.conf
proxy_redirect          off;
proxy_set_header        Host                    $host;
proxy_set_header        X-Real-IP               $remote_addr;
proxy_set_header        X-Forwarded-For         $proxy_add_x_forwarded_for;
proxy_set_header        X-Forwarded-Host        $host:$server_port;
proxy_set_header        X-Forwarded-Server      $host:$server_port;
proxy_set_header        X-Forwarded-Proto       $scheme;
client_max_body_size    10m;
client_body_buffer_size 128k;
proxy_connect_timeout   90;
proxy_send_timeout      90;
proxy_read_timeout      90;
proxy_buffers           32 4k;
proxy_pass_request_headers on;
EOF

##/etc/nginx/websocket-proxy.conf

No Format
cat << 'EOL'>/etc/nginx/websocket>websocket-proxy.conf
proxy_http_version      1.1;
proxy_set_header        Upgrade            $http_upgrade;
proxy_set_header        Connection         "Upgrade";
proxy_set_header        Authorization      "";
proxy_read_timeout      86400;
proxy_set_header        Host               $host;
proxy_set_header        X-Real-IP          $remote_addr;
proxy_set_header        X-Forwarded-Server $host;
proxy_set_header        X-Forwarded-For    $proxy_add_x_forwarded_for;
proxy_redirect          off;
EOL

...