Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
server {
listen *:80;
server_name localhost;
proxy_headers_hash_bucket_size 128;
proxy_headers_hash_max_size 1024;
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_set_header Cache-Control no-cache;
proxy_set_header Pragma no-cache;
proxy_set_header Expires 0;
proxy_max_temp_file_size 0;
proxy_read_timeout 120;
proxy_connect_timeout 120;
sendfile off;
proxy_buffering off;
client_max_body_size 100M;
location /appdir {
root /;
index /index.html;
rewrite ^[^\.]+$ /appdir/index.html last;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment