Skip to content

Instantly share code, notes, and snippets.

@dgacitua
Last active October 5, 2021 23:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgacitua/1a09276686ad55bfc405ee962e8612da to your computer and use it in GitHub Desktop.
Save dgacitua/1a09276686ad55bfc405ee962e8612da to your computer and use it in GitHub Desktop.
Simple Nginx reverse proxy
server {
listen 80;
server_name myapp.org;
error_log /var/log/nginx/myapp.error.log warn;
client_max_body_size 50M;
location / {
proxy_pass http://localhost:3000;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $http_host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_buffers 4 256k;
proxy_buffer_size 128k;
proxy_busy_buffers_size 256k;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment