fix: set default scheme correctly
This commit is contained in:
@@ -76,6 +76,7 @@ trigger-haproxy-vhosts-docker-args-process-deploy() {
|
|||||||
# add the labels for haproxy here
|
# add the labels for haproxy here
|
||||||
# prefer the https:443 mapping to http:80 mapping
|
# prefer the https:443 mapping to http:80 mapping
|
||||||
if [[ -n "$is_app_listening" ]] && [[ -n "$haproxy_domains" ]]; then
|
if [[ -n "$is_app_listening" ]] && [[ -n "$haproxy_domains" ]]; then
|
||||||
|
scheme="http"
|
||||||
echo "# THIS FILE IS GENERATED BY DOKKU - DO NOT EDIT, YOUR CHANGES WILL BE OVERWRITTEN" >"$app_urls_path"
|
echo "# THIS FILE IS GENERATED BY DOKKU - DO NOT EDIT, YOUR CHANGES WILL BE OVERWRITTEN" >"$app_urls_path"
|
||||||
xargs -I{} echo "$scheme://{}" <<<"$(echo "${app_domains}" | tr ' ' '\n' | sort -u)" >>"$app_urls_path"
|
xargs -I{} echo "$scheme://{}" <<<"$(echo "${app_domains}" | tr ' ' '\n' | sort -u)" >>"$app_urls_path"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user