Open asoorm opened 6 years ago
Suggestion
# for backwards compatibility
if [[ -n "${TYKSECRET}" ]]; then
export TYK_GW_SECRET="${TYKSECRET}"
fi
Then we can remove the ENV TYKSECRET 352d20ee67be67f6340b4c0605b044b7
from the Dockerfile
The problem with this suggestion is that is becomes a "magic" env var which is only available when starting container with entrypoint. as such, exec into container - the env var will not be visible.
Listen Port is significantly more difficult to fix, because that env var is used to determine which port should be exposed.
Documentation indicates which env vars are available to set for the gateway
https://tyk.io/docs/configure/gateway-env-variables/
However entrypoint.sh overrides these variables
Either documentation should specify that if using standard docker installation, you need to set
TYKLISTENPORT
andTYKSECRET
rather thanTYK_GW_LISTENPORT
andTYK_GW_SECRET
.Or
entrypoint.sh should only set
TYK_GW_LISTENPORT
andTYK_GW_SECRET
if they are not already set.