Spec out a conditional TLS inclusion patch
This commit is contained in:
parent
caa1e521ad
commit
b9cdae9857
@ -6,12 +6,19 @@ set -eu -o pipefail
|
|||||||
run_jekyll() {
|
run_jekyll() {
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
jekyll serve \
|
local args="--port $JEKYLL_PORT --host $JEKYLL_HOST --trace"
|
||||||
--port "$JEKYLL_PORT" \
|
|
||||||
--host "$JEKYLL_HOST" \
|
# Note(decentral1se): handle the case where the Dokku is deploying the app
|
||||||
--ssl-cert "$JEKYLL_SSL_CERT" \
|
# with HTTP support only before we have a chance to deploy the lets encrypt
|
||||||
--ssl-key "$JEKYLL_SSL_KEY" \
|
# certificates and mount them into the container
|
||||||
--trace
|
if [ -f "$JEKYLL_SSL_CERT" ]; then
|
||||||
|
args="${args} --ssl-cert $JEKYLL_SSL_CERT"
|
||||||
|
fi
|
||||||
|
if [ -f "$JEKYLL_SSL_KEY" ]; then
|
||||||
|
args="${args} --ssl-key $JEKYLL_SSL_KEY"
|
||||||
|
fi
|
||||||
|
|
||||||
|
jekyll serve "$args"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Main entrypoint
|
# Main entrypoint
|
||||||
|
Reference in New Issue
Block a user