diff --git a/config/docker/caddy/web-app/Caddyfile b/config/docker/caddy/web-app/Caddyfile index ab98064a..46bf47d5 100644 --- a/config/docker/caddy/web-app/Caddyfile +++ b/config/docker/caddy/web-app/Caddyfile @@ -1,64 +1,42 @@ -# Caddyfile - { # Global options + auto_https off servers { metrics } } -# Define the site - -app.mo-code.at:4000, :4000 { -# Root directory for static files +:4000 { +# Root directory root * /usr/share/caddy -# Access Logs (JSON format for Docker) +# Logging log { output stdout format json } -# Enable Gzip/Zstd compression +# Compression encode gzip zstd -# Templates for runtime configuration (config.json) +# Configuration Template templates { mime application/json } -# Cache Control for static assets (immutable) - @static { - file - path *.js *.css *.png *.jpg *.svg *.wasm - } - header @static Cache-Control "public, max-age=31536000, immutable" +# Static Assets + file_server -# Security Headers - header { - Cross-Origin-Opener-Policy "same-origin" - Cross-Origin-Embedder-Policy "require-corp" - X-Content-Type-Options "nosniff" - X-Frame-Options "DENY" - Referrer-Policy "strict-origin-when-cross-origin" - Permissions-Policy "camera=(), microphone=(), geolocation=()" - } - -# --- ROUTING LOGIC --- - -# 1. API Proxy +# API Proxy handle /api/* { reverse_proxy api-gateway:8081 } -# 2. Health Check +# Health handle /health { respond "healthy" 200 } -# 3. Static Files & SPA Fallback - handle { - try_files {path} /index.html - file_server - } +# SPA Routing (Last Resort) + try_files {path} /index.html } diff --git a/docs/ScreenShots/cloudflare-bestaetigung_2026-03-13_11-51.png b/docs/ScreenShots/cloudflare-bestaetigung_2026-03-13_11-51.png new file mode 100644 index 00000000..07604d30 Binary files /dev/null and b/docs/ScreenShots/cloudflare-bestaetigung_2026-03-13_11-51.png differ diff --git a/docs/ScreenShots/pangolin-web-app-einstellungen-proxy_01_2026-03-13_12-09.png b/docs/ScreenShots/pangolin-web-app-einstellungen-proxy_01_2026-03-13_12-09.png new file mode 100644 index 00000000..59606e0e Binary files /dev/null and b/docs/ScreenShots/pangolin-web-app-einstellungen-proxy_01_2026-03-13_12-09.png differ diff --git a/docs/ScreenShots/pangolin-web-app-einstellungen-proxy_02_2026-03-13_12-09.png b/docs/ScreenShots/pangolin-web-app-einstellungen-proxy_02_2026-03-13_12-09.png new file mode 100644 index 00000000..5a0aec29 Binary files /dev/null and b/docs/ScreenShots/pangolin-web-app-einstellungen-proxy_02_2026-03-13_12-09.png differ diff --git a/docs/ScreenShots/prod-docker-log-web-app_2026-03-13_12-20.png b/docs/ScreenShots/prod-docker-log-web-app_2026-03-13_12-20.png new file mode 100644 index 00000000..6e3fb928 Binary files /dev/null and b/docs/ScreenShots/prod-docker-log-web-app_2026-03-13_12-20.png differ