Files
youtube-video-download/nginx/default.conf
2026-01-10 13:21:36 +01:00

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;
}
}