File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -38,15 +38,21 @@ satosa-saml-metadata \
38
38
" ${DATA_DIR} /metadata.crt" \
39
39
--dir " ${METADATA_DIR} "
40
40
41
+ # if the user provided a gunicorn configuration, use it
41
42
if [ -f " $GUNICORN_CONF " ]
42
43
then conf_opt=" --config ${GUNICORN_CONF} "
43
44
fi
44
45
45
- # start the proxy
46
46
# if HTTPS cert is available, use it
47
47
https_key=" ${DATA_DIR} /https.key"
48
48
https_crt=" ${DATA_DIR} /https.crt"
49
- if [ -f " $https_key " && -f " $https_crt " ]
50
- then exec gunicorn $conf_opt -b0.0.0.0:" ${PROXY_PORT} " satosa.wsgi:app --keyfile " $https_key " --certfile " $https_crt "
51
- else exec gunicorn $conf_opt -b0.0.0.0:" ${PROXY_PORT} " satosa.wsgi:app
49
+ if [ -f " $https_key " -a -f " $https_crt " ]
50
+ then https_opts=" --keyfile ${https_key} --certfile ${https_crt} "
52
51
fi
52
+
53
+ # start the proxy
54
+ exec gunicorn $conf_opt \
55
+ -b 0.0.0.0:" ${PROXY_PORT} " \
56
+ satosa.wsgi:app \
57
+ $https_opts \
58
+ ;
You can’t perform that action at this time.
0 commit comments