Add configuration file for nginx

This commit is contained in:
Marius 2016-11-04 18:54:35 +01:00
parent 6c3af75c51
commit 3b55041992
1 changed files with 26 additions and 0 deletions

26
.infra/files/nginx.conf Normal file
View File

@ -0,0 +1,26 @@
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
server_name master.tus.io;
location / {
# Forward incoming requests to local tusd instance
proxy_pass http://localhost:8080;
# Disable request and response buffering
proxy_request_buffering off;
proxy_buffering off;
proxy_http_version 1.1;
# Add X-Forwarded-* headers
proxy_set_header X-Forwarded-Host $hostname;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
client_max_body_size 0;
add_header King marius;
}
}