26 lines
587 B
Nginx Configuration File
26 lines
587 B
Nginx Configuration File
# Production nginx config for KiteStacks portal
|
|
# Listens on port 3000 to match the Cloudflare tunnel route.
|
|
|
|
server {
|
|
listen 3000;
|
|
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";
|
|
}
|
|
}
|