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
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:
parent
9747b9957f
commit
30308740dd
|
|
@ -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}"
|
||||
|
|
|
|||
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user