mirror of
https://github.com/linuxserver/docker-code-server.git
synced 2025-04-16 22:59:30 +02:00
fixup SSL
This commit is contained in:
parent
51c5aa1f55
commit
f637fe5284
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user