| 1 | server { |
| 2 | listen 80; |
| 3 | listen [::]:80; |
| 4 | ## if you have SSL setup |
| 5 | # listen 443 ssl http2; |
| 6 | # listen [::]:443 ssl http2; |
| 7 | |
| 8 | location / { |
| 9 | proxy_pass http://127.0.0.1:2007; |
| 10 | proxy_http_version 1.1; |
| 11 | proxy_set_header Connection "upgrade"; |
| 12 | proxy_set_header Upgrade $http_upgrade; |
| 13 | proxy_set_header Connection keep-alive; |
| 14 | proxy_set_header X-Forwarded-For $remote_addr; |
| 15 | proxy_set_header X-Forwarded-Proto $scheme; |
| 16 | proxy_set_header X-Real-IP $remote_addr; |
| 17 | proxy_set_header Client-IP $remote_addr; |
| 18 | proxy_read_timeout 1d; |
| 19 | } |
| 20 | } |
swee / fastfile nginx conf
Last active 7 months ago
Revision 9863c4303810f97d3629022adfb12c67283de837