Created
November 19, 2018 13:20
-
-
Save serragnoli/8bc9f82a04a9188bb69c23a0ded1ae31 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| user www-data; | |
| worker_processes 5; | |
| pid /var/run/nginx.pid; | |
| worker_rlimit_nofile 8192; | |
| events { | |
| worker_connections 4096; | |
| } | |
| http { | |
| upstream go { | |
| server localhost:8153; | |
| } | |
| server { | |
| listen 80; | |
| client_max_body_size 0; | |
| location / { | |
| proxy_pass http://go; | |
| 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-Proto $scheme; | |
| proxy_http_version 1.1; | |
| proxy_set_header Connection close; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment