Run Zitadel with tlsMode external behind the edge
With tlsMode disabled Zitadel advertises http URLs, so the console calls http://<domain> and the CSP blocks it. Make it configurable through ZITADEL_TLS_MODE (default disabled for dev, external in prod).
This commit is contained in:
+4
-1
@@ -47,7 +47,10 @@ services:
|
||||
zitadel:
|
||||
image: ghcr.io/zitadel/zitadel:latest
|
||||
container_name: infra-zitadel
|
||||
command: start-from-init --masterkeyFromEnv --tlsMode disabled
|
||||
# `disabled` (dev, plain http) makes Zitadel advertise http URLs; behind a
|
||||
# TLS-terminating proxy it must be `external` or the console calls
|
||||
# http://<domain> and the CSP blocks it.
|
||||
command: start-from-init --masterkeyFromEnv --tlsMode ${ZITADEL_TLS_MODE:-disabled}
|
||||
environment:
|
||||
ZITADEL_MASTERKEY: ${ZITADEL_MASTERKEY}
|
||||
# The external domain/port form the token issuer and must be identical
|
||||
|
||||
Reference in New Issue
Block a user