Skip to content

Instantly share code, notes, and snippets.

@csarcom
Created January 13, 2018 16:27
Show Gist options
  • Save csarcom/5a604e0e2006b7a2a68ed322a73f5521 to your computer and use it in GitHub Desktop.
Save csarcom/5a604e0e2006b7a2a68ed322a73f5521 to your computer and use it in GitHub Desktop.
nginx conf
upstream batata{
server 127.0.0.1:8000;
}
error_log /var/log/nginx/error.log;
access_log /var/log/nginx/access.log;
server {
listen 80;
server_name 159.203.86.164;
location / {
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_cache_bypass $http_upgrade;
proxy_pass http://batata/;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment