docs: archive old screenshots and update Caddyfile configuration
Build and Publish Docker Images / build-and-push (., backend/infrastructure/gateway/Dockerfile, api-gateway, api-gateway) (push) Successful in 7m24s
Build and Publish Docker Images / build-and-push (., backend/services/ping/Dockerfile, ping-service, ping-service) (push) Successful in 7m3s
Build and Publish Docker Images / build-and-push (., config/docker/caddy/web-app/Dockerfile, web-app, web-app) (push) Successful in 1m46s
Build and Publish Docker Images / build-and-push (., config/docker/keycloak/Dockerfile, keycloak, keycloak) (push) Successful in 1m39s
- Moved outdated screenshots to the `archive` directory for better organization. - Refined Caddyfile formatting and improved routing logic, including API proxy and SPA fallback behavior. - Added new screenshots for Pangolin web app settings. Signed-off-by: Stefan Mogeritsch <stefan.mo.co@gmail.com>
@@ -1,11 +1,15 @@
|
|||||||
|
# Caddyfile
|
||||||
|
|
||||||
{
|
{
|
||||||
# Global Options
|
# Global options
|
||||||
servers {
|
servers {
|
||||||
metrics
|
metrics
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
:4000 {
|
# Define the site
|
||||||
|
|
||||||
|
app.mo-code.at:4000, :4000 {
|
||||||
# Root directory for static files
|
# Root directory for static files
|
||||||
root * /usr/share/caddy
|
root * /usr/share/caddy
|
||||||
|
|
||||||
@@ -30,13 +34,10 @@
|
|||||||
}
|
}
|
||||||
header @static Cache-Control "public, max-age=31536000, immutable"
|
header @static Cache-Control "public, max-age=31536000, immutable"
|
||||||
|
|
||||||
# Security Headers (Future Proofing for Wasm)
|
# Security Headers
|
||||||
header {
|
header {
|
||||||
# Cross-Origin Isolation for SharedArrayBuffer (required for some Wasm features)
|
|
||||||
Cross-Origin-Opener-Policy "same-origin"
|
Cross-Origin-Opener-Policy "same-origin"
|
||||||
Cross-Origin-Embedder-Policy "require-corp"
|
Cross-Origin-Embedder-Policy "require-corp"
|
||||||
|
|
||||||
# Standard Security Headers
|
|
||||||
X-Content-Type-Options "nosniff"
|
X-Content-Type-Options "nosniff"
|
||||||
X-Frame-Options "DENY"
|
X-Frame-Options "DENY"
|
||||||
Referrer-Policy "strict-origin-when-cross-origin"
|
Referrer-Policy "strict-origin-when-cross-origin"
|
||||||
@@ -45,11 +46,9 @@
|
|||||||
|
|
||||||
# --- ROUTING LOGIC ---
|
# --- ROUTING LOGIC ---
|
||||||
|
|
||||||
# 1. API Proxy (Priority 1)
|
# 1. API Proxy
|
||||||
handle /api/* {
|
handle /api/* {
|
||||||
reverse_proxy api-gateway:8081 {
|
reverse_proxy api-gateway:8081
|
||||||
header_up Host {upstream_hostport}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# 2. Health Check
|
# 2. Health Check
|
||||||
@@ -57,12 +56,9 @@
|
|||||||
respond "healthy" 200
|
respond "healthy" 200
|
||||||
}
|
}
|
||||||
|
|
||||||
# 3. Static Files & SPA Fallback (Stable Config)
|
# 3. Static Files & SPA Fallback
|
||||||
handle {
|
handle {
|
||||||
# Serve static files if they exist
|
|
||||||
file_server
|
|
||||||
|
|
||||||
# SPA Routing: Fallback to index.html for non-existent files
|
|
||||||
try_files {path} /index.html
|
try_files {path} /index.html
|
||||||
|
file_server
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
|
Before Width: | Height: | Size: 112 KiB After Width: | Height: | Size: 112 KiB |
|
Before Width: | Height: | Size: 70 KiB After Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
|
Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 62 KiB |
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 102 KiB |
|
Before Width: | Height: | Size: 93 KiB After Width: | Height: | Size: 93 KiB |
|
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 88 KiB |
|
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 85 KiB |
|
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
|
Before Width: | Height: | Size: 175 KiB After Width: | Height: | Size: 175 KiB |
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
|
Before Width: | Height: | Size: 259 KiB After Width: | Height: | Size: 259 KiB |
|
Before Width: | Height: | Size: 153 KiB After Width: | Height: | Size: 153 KiB |
|
Before Width: | Height: | Size: 84 KiB After Width: | Height: | Size: 84 KiB |
|
After Width: | Height: | Size: 46 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 47 KiB |