Skip to content

Commit a7173d7

Browse files
misic00kiemon5ter
authored andcommitted
Add ability to add chain for https certificates
The canonical example for this is Let's Encrypt Signed-off-by: Ivan Kanakarakis <[email protected]>
1 parent 608c718 commit a7173d7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docker/start.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,16 @@ if [ -f "$https_key" -a -f "$https_crt" ]
5050
then https_opts="--keyfile ${https_key} --certfile ${https_crt}"
5151
fi
5252

53+
# if a chain is available, use it
54+
chain_pem="${DATA_DIR}/chain.pem"
55+
if [ -f "$chain_pem" ]
56+
then chain_opts="--ca-certs chain.pem"
57+
fi
58+
5359
# start the proxy
5460
exec gunicorn $conf_opt \
5561
-b 0.0.0.0:"${PROXY_PORT}" \
5662
satosa.wsgi:app \
5763
$https_opts \
64+
$chain_opts \
5865
;

0 commit comments

Comments
 (0)