Files
dancefinder-app/nginx-conf/default.conf
T
2019-01-15 13:21:24 +01:00

37 lines
858 B
Plaintext

server {
listen 80;
server_name localhost;
sendfile off;
access_log /dev/stdout combined;
location / {
root /usr/share/nginx/html;
index index.html index.htm;
expires 0;
}
location /health {
add_header Content-Type text/plain;
access_log off;
return 200 'Ok';
}
location /graph/ {
proxy_set_header Host $http_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_pass http://dancefinder;
}
error_log /dev/stdout info;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}