mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
fix: use https scheme for any tcp/443 EXPOSE directive
This commit is contained in:
@@ -124,8 +124,12 @@ fn-builder-dockerfile-get-detect-port-map() {
|
||||
p=${p//\/udp/}
|
||||
port_map+="udp:$p:$p "
|
||||
else
|
||||
scheme="http"
|
||||
p=${p//\/tcp/}
|
||||
port_map+="http:$p:$p "
|
||||
if [[ "$p" == "443" ]]; then
|
||||
scheme="https"
|
||||
fi
|
||||
port_map+="$scheme:$p:$p "
|
||||
fi
|
||||
done
|
||||
echo "$port_map" | xargs
|
||||
|
||||
Reference in New Issue
Block a user