use separate env file
All checks were successful
Mirror to GitHub / mirror (push) Successful in 8s

This commit is contained in:
jona.klaess
2026-06-08 15:42:48 +02:00
parent bca9165f3c
commit 49c955f8e8
4 changed files with 21 additions and 14 deletions

7
ptp-chat/frontend-env.js Normal file
View File

@@ -0,0 +1,7 @@
window.__ENV__ = {
URL_KEYCLOAK: "https://keycloak.controller.bittehackmichnicht.de",
KEYCLOAK_REALM: "PraxistransferKeycloak",
KEYCLOAK_CLIENT_ID: "praxistransfer",
URL_FRONTEND: "https://ptp-chat.k8s.bittehackmichnicht.de",
URL_BACKEND: "https://ptp-chat.k8s.bittehackmichnicht.de/api"
};

View File

@@ -9,3 +9,8 @@ resources:
- ptp-chat-istio.yaml
- ptp-chat-sealed-secret.yaml
- ptp-chat-pull-sealed-secret.yaml
configMapGenerator:
- name: ptp-chat-frontend-env
files:
- frontend-env.js

View File

@@ -6,7 +6,6 @@ metadata:
labels:
app: ptp-chat-backend
spec:
replicas: 1
selector:
matchLabels:
app: ptp-chat-backend

View File

@@ -6,7 +6,6 @@ metadata:
labels:
app: ptp-chat-frontend
spec:
replicas: 1
selector:
matchLabels:
app: ptp-chat-frontend
@@ -19,17 +18,10 @@ spec:
- name: ptp-chat-frontend
image: gitea.controller.bittehackmichnicht.de/apps/ptpchat-frontend/ptp-chat-frontend:latest
imagePullPolicy: Always
env:
- name: URL_KEYCLOAK
value: "https://keycloak.controller.bittehackmichnicht.de"
- name: KEYCLOAK_REALM
value: "PraxistransferKeycloak"
- name: KEYCLOAK_CLIENT_ID
value: "praxistransfer"
- name: URL_FRONTEND
value: "https://ptp-chat.k8s.bittehackmichnicht.de"
- name: URL_BACKEND
value: "https://ptp-chat.k8s.bittehackmichnicht.de/api"
volumeMounts:
- name: env-volume
mountPath: /usr/share/nginx/html/env-config.js
subPath: env-config.js
ports:
- name: http
containerPort: 80
@@ -45,3 +37,7 @@ spec:
port: 80
imagePullSecrets:
- name: pull-secret
volumes:
- name: env-volume
configMap:
name: ptp-chat-frontend-env