Upgrade Caddy to v2.11 and enforce HTTPS for API and Keycloak URLs.
All checks were successful
Build and Publish Docker Images / build-and-push (., backend/infrastructure/gateway/Dockerfile, api-gateway, api-gateway) (push) Successful in 7m37s
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 1m56s
Build and Publish Docker Images / build-and-push (., config/docker/keycloak/Dockerfile, keycloak, keycloak) (push) Successful in 1m44s

This commit is contained in:
Stefan Mogeritsch 2026-03-14 16:06:53 +01:00
parent 9747b9957f
commit 30308740dd
2 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ services:
dockerfile: config/docker/caddy/web-app/Dockerfile
args:
# Frontend spezifisch:
CADDY_VERSION: "${DOCKER_CADDY_VERSION:-2.9-alpine}"
CADDY_VERSION: "${DOCKER_CADDY_VERSION:-2.11-alpine}"
# Metadaten:
VERSION: "${DOCKER_VERSION:-1.0.0-SNAPSHOT}"
BUILD_DATE: "${DOCKER_BUILD_DATE}"

View File

@ -27,7 +27,7 @@
? apiOverride.replace(/\/$/, '')
: (apiFromCaddy && !apiFromCaddy.startsWith('{{')
? apiFromCaddy.replace(/\/$/, '')
: window.location.origin.replace(/\/$/, ''));
: 'https://' + window.location.origin.replace(/\/$/, ''));
// Caddy injiziert: {{.Env.KEYCLOAK_URL}} → z.B. "https://auth.mo-code.at"
const kcFromCaddy = '{{.Env.KEYCLOAK_URL}}';
@ -36,7 +36,7 @@
? kcOverride.replace(/\/$/, '')
: (kcFromCaddy && !kcFromCaddy.startsWith('{{')
? kcFromCaddy.replace(/\/$/, '')
: 'http://' + window.location.hostname + ':8180');
: 'https://' + window.location.hostname + ':8180');
} catch (e) {
globalThis.API_BASE_URL = 'http://localhost:8081';