Switch Caddy template MIME type to JSON and replace HTTPS with HTTP for API and Keycloak URLs in frontend.
All checks were successful
Build and Publish Docker Images / build-and-push (., backend/infrastructure/gateway/Dockerfile, api-gateway, api-gateway) (push) Successful in 8m45s
Build and Publish Docker Images / build-and-push (., backend/services/ping/Dockerfile, ping-service, ping-service) (push) Successful in 7m28s
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 17:27:21 +01:00
parent 30308740dd
commit 05b37256c4
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@
# Caddy-Template-Engine: ersetzt {{.Env.VAR}} in index.html UND config.json
templates {
mime text/html application/json
mime application/json
}
# API-Proxy (höchste Priorität vor dem SPA-Fallback)

View File

@ -27,7 +27,7 @@
? apiOverride.replace(/\/$/, '')
: (apiFromCaddy && !apiFromCaddy.startsWith('{{')
? apiFromCaddy.replace(/\/$/, '')
: 'https://' + window.location.origin.replace(/\/$/, ''));
: 'http://' + 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(/\/$/, '')
: 'https://' + window.location.hostname + ':8180');
: 'http://' + window.location.hostname + ':8180');
} catch (e) {
globalThis.API_BASE_URL = 'http://localhost:8081';