Skip to content

Instantly share code, notes, and snippets.

@reinhart1010
Last active May 27, 2022 04:08
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 reinhart1010/a2d9676c2820d7549ab28e56edd935d3 to your computer and use it in GitHub Desktop.
Save reinhart1010/a2d9676c2820d7549ab28e56edd935d3 to your computer and use it in GitHub Desktop.
Minimal configuration for Nginx reverse proxy
server {
server_name subdomain.example.com;
location / {
proxy_pass http://localhost:8888;
include /etc/nginx/proxy_params;
}
access_log /var/log/nginx/example-subdomain.log;
error_log /var/log/nginx/example-subdomain-error.log crit;
proxy_buffer_size 128k;
proxy_buffers 4 256k;
proxy_busy_buffers_size 256k;
listen 80;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment