Fix #4692, #4856 - stick with auto for scheme in db, change it to $scheme when rendering

This commit is contained in:
Jamie Curnow committed 2025-11-11 14:46:25 +10:00
1 parent 4bd545c88e
commit 8aeb2fa661
3 files changed
+56 -1

No files matched your search

+5
View File
@@ -216,6 +216,11 @@ const internalNginx = {
}
}
// For redirection hosts, if the scheme is not http or https, set it to $scheme
if (nice_host_type === "redirection_host" && ['http', 'https'].indexOf(host.forward_scheme.toLowerCase()) === -1) {
host.forward_scheme = "$scheme";
}
if (host.locations) {
//logger.info ('host.locations = ' + JSON.stringify(host.locations, null, 2));
origLocations = [].concat(host.locations);