Skip to content

Instantly share code, notes, and snippets.

@serragnoli
Created November 19, 2018 13:20
Show Gist options
  • Select an option

  • Save serragnoli/8bc9f82a04a9188bb69c23a0ded1ae31 to your computer and use it in GitHub Desktop.

Select an option

Save serragnoli/8bc9f82a04a9188bb69c23a0ded1ae31 to your computer and use it in GitHub Desktop.
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