Files
admGitAICDSandClaude Opus 5 7befe6b0c5
Deploy App / deploy (push) Successful in 21s
Healthcheck repariert - er verhinderte die Traefik-Registrierung
busybox-wget loest localhost nach ::1 auf, nginx lauschte nur auf IPv4. Der
Healthcheck schlug damit dauerhaft fehl, der Container blieb 'starting', und
Traefik nimmt Container ohne 'healthy'-Status nicht in die Routing-Tabelle auf.
Daher 404 trotz korrekter Labels.

- Healthcheck auf 127.0.0.1
- nginx lauscht zusaetzlich auf IPv6
- Workflow wartet auf 'healthy' und prueft den Router

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-09 19:40:07 +02:00

28 lines
646 B
Nginx Configuration File

server {
listen 80;
listen [::]:80;
server_name _;
root /usr/share/nginx/html;
index index.html;
gzip on;
gzip_types text/css application/javascript application/json image/svg+xml;
gzip_min_length 1024;
# Statische Assets tragen einen Hash im Namen und duerfen lange liegenbleiben.
location /assets/ {
expires 1y;
add_header Cache-Control "public, immutable";
}
# Das Szenenmodell wird bei jedem Plan-Update neu gebaut.
location /data/ {
expires 1h;
add_header Cache-Control "public";
}
location / {
try_files $uri $uri/ /index.html;
}
}