kitestacks-homelab/apps/kitestacks-portal-test/nginx.conf

23 lines
475 B
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location /api/ {
proxy_pass http://host.docker.internal:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_read_timeout 10s;
}
location /images/ {
expires 7d;
add_header Cache-Control "public, max-age=604800";
}
}