This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| snippets:nginx [2015/12/09 09:40] – allspark_cp | snippets:nginx [2016/09/29 14:38] (current) – allspark_cp | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| ssl_prefer_server_ciphers on; | ssl_prefer_server_ciphers on; | ||
| ``` | ``` | ||
| + | |||
| + | ## proxy | ||
| + | |||
| + | ``` | ||
| + | proxy_pass http:// | ||
| + | proxy_set_header Host $host; | ||
| + | proxy_set_header X-Forwarded-Proto $scheme; | ||
| + | proxy_set_header X-Real-IP $remote_addr; | ||
| + | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
| + | proxy_set_header Proxy ""; | ||
| + | proxy_redirect off; | ||
| + | proxy_connect_timeout 30; | ||
| + | proxy_buffering off; | ||
| + | proxy_request_buffering off; | ||
| + | | ||
| + | # for websockets | ||
| + | proxy_http_version 1.1; | ||
| + | proxy_set_header Upgrade $http_upgrade; | ||
| + | proxy_set_header Connection " | ||
| + | proxy_read_timeout 10m; | ||
| + | proxy_send_timeout 10m; | ||
| + | ``` | ||
| + | |||
| + | ## example | ||
| ``` | ``` | ||