pass morty key as env variable

This commit is contained in:
Tristan WAGNER 2022-07-22 22:06:33 +00:00
parent 7bf4e8d12d
commit 59c305391f

View file

@ -10,10 +10,10 @@ Type=simple
User=${SERVICE_USER} User=${SERVICE_USER}
Group=${SERVICE_GROUP} Group=${SERVICE_GROUP}
WorkingDirectory=${SERVICE_HOME} WorkingDirectory=${SERVICE_HOME}
ExecStart=${SERVICE_HOME}/go-apps/bin/morty -key '${MORTY_KEY}' -listen '${MORTY_LISTEN}' -timeout ${MORTY_TIMEOUT} ExecStart=${SERVICE_HOME}/go-apps/bin/morty -listen '${MORTY_LISTEN}' -timeout ${MORTY_TIMEOUT}
Restart=always Restart=always
Environment=USER=${SERVICE_USER} HOME=${SERVICE_HOME} DEBUG=${SERVICE_ENV_DEBUG} Environment=USER=${SERVICE_USER} HOME=${SERVICE_HOME} DEBUG=${SERVICE_ENV_DEBUG} MORTY_KEY=${MORTY_KEY}
# Some distributions may not support these hardening directives. If you cannot # Some distributions may not support these hardening directives. If you cannot
# start the service due to an unknown option, comment out the ones not supported # start the service due to an unknown option, comment out the ones not supported