28 lines
547 B
Plaintext
28 lines
547 B
Plaintext
server {
|
|
listen 80;
|
|
server_name _;
|
|
|
|
# Serve static UI
|
|
root /usr/share/nginx/html;
|
|
index index.html;
|
|
|
|
location /api/ {
|
|
proxy_pass http://api:5000/api/;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
}
|
|
|
|
location /downloads/ {
|
|
alias /downloads/;
|
|
autoindex on;
|
|
types {
|
|
application/octet-stream bin;
|
|
}
|
|
add_header Content-Disposition "attachment";
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ /index.html;
|
|
}
|
|
}
|