File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ Add the following to your Nginx server section:
99 proxy_http_version 1.1;
1010 proxy_set_header Upgrade $http_upgrade;
1111 proxy_set_header Connection $connection_upgrade;
12- proxy_set_header X-Forwarded-Proto $scheme;
12+ proxy_set_header X-Forwarded-Proto $scheme;
1313 proxy_set_header Host $http_host;
14- proxy_set_header X-Real-IP $remote_addr;
15- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
14+ proxy_set_header X-Real-IP $remote_addr;
15+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
1616 }
1717
1818This is using a map to provide the Upgrade and Connection
@@ -27,17 +27,17 @@ the http section of your server:
2727Also make sure that you have the general proxy configuration
2828like this in place:
2929
30- proxy_buffering on;
31- proxy_ignore_client_abort off;
32- proxy_redirect off;
33- proxy_connect_timeout 90;
34- proxy_send_timeout 90;
35- proxy_read_timeout 90;
36- proxy_buffer_size 4k;
37- proxy_buffers 4 32k;
38- proxy_busy_buffers_size 64k;
39- proxy_temp_file_write_size 64k;
40- proxy_next_upstream error timeout invalid_header http_502 http_503 http_504;
30+ proxy_buffering on;
31+ proxy_ignore_client_abort off;
32+ proxy_redirect off;
33+ proxy_connect_timeout 90;
34+ proxy_send_timeout 90;
35+ proxy_read_timeout 90;
36+ proxy_buffer_size 4k;
37+ proxy_buffers 4 32k;
38+ proxy_busy_buffers_size 64k;
39+ proxy_temp_file_write_size 64k;
40+ proxy_next_upstream error timeout invalid_header http_502 http_503 http_504;
4141
4242And thats it.
4343
You can’t perform that action at this time.
0 commit comments