Made keycloak partially init from env variables

also fixed theme to russian
This commit is contained in:
2026-04-23 19:59:25 +03:00
parent 112a728d0b
commit d48fa65f8e
9 changed files with 129 additions and 13 deletions

21
.env.template Normal file
View File

@@ -0,0 +1,21 @@
POSTGRES_USER=keycloak
POSTGRES_PASSWORD= !!!changeme
POSTGRES_DB=keycloak
REALM_DISPLAY_NAME=QMolSim
# KEYCLOAK NGINX CONFIG
KEYCLOAK_HOSTNAME=http://auth.example.com
KEYCLOAK_PORT=80
# KEYCLOAK REALM AND CLIENT CONFIG
REALM_NAME=quant_sim-realm
FRONTEND_CLIENT_ID=react-frontend
FRONTEND_CLIENT_NAME="React Frontend"
FRONTEND_URL=http://frontend.example.com #The base url for accepted redirects
FRONTEND_HOME_URI=/quantum #The accepted redirect path for logout
FRONTEND_REDIRECT_PATH=/* #The accepted redirect paths for login
QUANTUM_BACKEND_CLIENT_ID=quantum-backend
QUANTUM_BACKEND_CLIENT_SECRET= !!!changeme
QUANTUM_BACKEND_CLIENT_NAME="Quantum Backend"