Files
cameleer-server/ui/nginx.conf
hsiegeln cb3ebfea7c
Some checks failed
CI / cleanup-branch (push) Has been skipped
CI / build (push) Failing after 18s
CI / docker (push) Has been skipped
CI / deploy (push) Has been skipped
CI / deploy-feature (push) Has been skipped
chore: rename cameleer3 to cameleer
Rename Java packages from com.cameleer3 to com.cameleer, module
directories from cameleer3-* to cameleer-*, and all references
throughout workflows, Dockerfiles, docs, migrations, and pom.xml.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 15:28:42 +02:00

40 lines
1.1 KiB
Nginx Configuration File

server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# SPA fallback: serve index.html for all non-file routes
location / {
try_files $uri $uri/ /index.html;
}
# API proxy — target set via CAMELEER_API_URL env var (default: http://cameleer-server:8081)
location /api/ {
proxy_pass ${CAMELEER_API_URL};
client_max_body_size 200m;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# SSE support
proxy_buffering off;
proxy_cache off;
proxy_read_timeout 86400s;
}
# Caching for static assets
location /assets/ {
expires 1y;
add_header Cache-Control "public, immutable";
}
# Health check
location /healthz {
access_log off;
return 200 "ok\n";
add_header Content-Type text/plain;
}
}