fix: prefer the scheme specified in the port map

This commit is contained in:
Jose Diaz-Gonzalez
2025-09-07 22:04:20 -04:00
parent 52e4e90819
commit aa5c365e93

View File

@@ -151,7 +151,7 @@ fn-domains-generate-urls-from-config() {
while IFS= read -r port_map; do
local scheme="$(awk -F ':' '{ print $1 }' <<<"$port_map")"
local listen_port="$(awk -F ':' '{ print $2 }' <<<"$port_map")"
fn-domains-generate-url "$DEFAULT_SCHEME" "$VHOST" "$listen_port"
fn-domains-generate-url "$scheme" "$VHOST" "$listen_port"
done <<<"$APP_PORT_MAP"
else
fn-domains-generate-url "$DEFAULT_SCHEME" "$VHOST" "$DEFAULT_LISTEN_PORT"