Deploy App / deploy (push) Successful in 21s
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>
28 lines
646 B
Nginx Configuration File
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;
|
|
}
|
|
}
|