fixup SSL

This commit is contained in:
Thomas Bell 2020-03-28 13:36:19 -04:00
parent 51c5aa1f55
commit f637fe5284
No known key found for this signature in database
GPG Key ID: 0223265715C296F9

View File

@ -7,10 +7,11 @@ else
echo "starting with no password" echo "starting with no password"
fi fi
if [ -n "${CERT_KEY}" ]; then if [ -n "${SSL_KEY}" ] && [ -n "${SSL_CERT}" ]; then
KEY="--cert-key ${CERT_KEY}" SSL_CONFIG="--cert ${SSL_CERT} --cert-key ${SSL_KEY}"
else else
KEY="" echo "Running insecurely on HTTP."
SSL_CONFIG=""
fi fi
exec \ exec \
@ -22,6 +23,5 @@ exec \
--disable-telemetry \ --disable-telemetry \
--disable-updates \ --disable-updates \
--auth "${AUTH}" \ --auth "${AUTH}" \
--cert "${CERT}" \ "${SSL_CONFIG}" \
"${KEY}" \
/config/workspace /config/workspace