Last active
October 5, 2021 23:45
-
-
Save dgacitua/1a09276686ad55bfc405ee962e8612da to your computer and use it in GitHub Desktop.
Simple Nginx reverse proxy
This file contains 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
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