1
Fork 0
photoview/docker/nginx-proxy/default.conf

36 lines
1.1 KiB
Plaintext
Raw Normal View History

2019-08-30 15:43:24 +02:00
server {
listen 80 default_server;
location /api {
proxy_pass http://api;
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;
# Required for Websocket
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
#add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload";
client_max_body_size 0;
access_log /var/log/nginx/photoview-api.access.log;
error_log /var/log/nginx/photoview-api.error.log;
}
location / {
proxy_pass http://ui;
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;
#add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload";
client_max_body_size 0;
access_log /var/log/nginx/photoview-ui.access.log;
error_log /var/log/nginx/photoview-ui.error.log;
}
}