Switch Caddy template MIME type to JSON and replace HTTPS with HTTP for API and Keycloak URLs in frontend.
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
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:
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
# Caddy-Template-Engine: ersetzt {{.Env.VAR}} in index.html UND config.json
|
# Caddy-Template-Engine: ersetzt {{.Env.VAR}} in index.html UND config.json
|
||||||
templates {
|
templates {
|
||||||
mime text/html application/json
|
mime application/json
|
||||||
}
|
}
|
||||||
|
|
||||||
# API-Proxy (höchste Priorität – vor dem SPA-Fallback)
|
# API-Proxy (höchste Priorität – vor dem SPA-Fallback)
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
? apiOverride.replace(/\/$/, '')
|
? apiOverride.replace(/\/$/, '')
|
||||||
: (apiFromCaddy && !apiFromCaddy.startsWith('{{')
|
: (apiFromCaddy && !apiFromCaddy.startsWith('{{')
|
||||||
? apiFromCaddy.replace(/\/$/, '')
|
? apiFromCaddy.replace(/\/$/, '')
|
||||||
: 'https://' + window.location.origin.replace(/\/$/, ''));
|
: 'http://' + window.location.origin.replace(/\/$/, ''));
|
||||||
|
|
||||||
// Caddy injiziert: {{.Env.KEYCLOAK_URL}} → z.B. "https://auth.mo-code.at"
|
// Caddy injiziert: {{.Env.KEYCLOAK_URL}} → z.B. "https://auth.mo-code.at"
|
||||||
const kcFromCaddy = '{{.Env.KEYCLOAK_URL}}';
|
const kcFromCaddy = '{{.Env.KEYCLOAK_URL}}';
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
? kcOverride.replace(/\/$/, '')
|
? kcOverride.replace(/\/$/, '')
|
||||||
: (kcFromCaddy && !kcFromCaddy.startsWith('{{')
|
: (kcFromCaddy && !kcFromCaddy.startsWith('{{')
|
||||||
? kcFromCaddy.replace(/\/$/, '')
|
? kcFromCaddy.replace(/\/$/, '')
|
||||||
: 'https://' + window.location.hostname + ':8180');
|
: 'http://' + window.location.hostname + ':8180');
|
||||||
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
globalThis.API_BASE_URL = 'http://localhost:8081';
|
globalThis.API_BASE_URL = 'http://localhost:8081';
|
||||||
|
|||||||
Reference in New Issue
Block a user