digitaldemocratic/docker/api/default.conf

54 lines
1.2 KiB
Plaintext

upstream api {
server 127.0.0.1:7039 fail_timeout=0;
}
server {
listen 80;
server_name localhost;
root /api/api/static/;
expires max;
log_not_found off;
access_log off;
# location /header/json {
# proxy_pass http://127.0.0.1:7039/header/json;
# expires max;
# log_not_found off;
# access_log off;
# }
location /json {
alias /api/api/static/templates/header.json;
add_header Content-Type application/json;
index header.json;
expires max;
log_not_found off;
access_log off;
}
location /header/html {
alias /api/api/static/templates/header.html;
add_header Content-Type text/html;
index header.html;
expires max;
log_not_found off;
access_log off;
}
location /header/html/nextcloud {
alias /api/api/static/templates/header_nextcloud.html;
add_header Content-Type text/html;
index header_nextcloud.html
expires max;
log_not_found off;
access_log off;
}
location / {
try_files $uri $uri/
expires max;
log_not_found off;
access_log off;
}
}