fix redirects

hachino-test
Pyjacpp 2026-07-12 12:21:02 +02:00
parent b90c2af0ec
commit b90e461f45
No known key found for this signature in database
GPG Key ID: ED479A5A26930939
1 changed files with 2 additions and 2 deletions

View File

@ -166,7 +166,7 @@ in
rejectSSL = vhostConfig.httpOnly; rejectSSL = vhostConfig.httpOnly;
}; };
# Conf pour lhost en entrès # Conf pour lhôte en entrée
entryExtraConf = { entryExtraConf = {
extraConfig = '' extraConfig = ''
set_real_ip_from 172.16.0.0/16; set_real_ip_from 172.16.0.0/16;
@ -238,7 +238,7 @@ in
lib.map (alias: { lib.map (alias: {
"${vhostName}-alias-${alias}" = sslConf // { "${vhostName}-alias-${alias}" = sslConf // {
serverName = alias; serverName = alias;
globalRedirect = vhostConfig.globalRedirect or "${vhostName}.crans.${mainTld}"; globalRedirect = lib.defaultTo "${vhostName}.crans.${mainTld}" vhostConfig.globalRedirect;
}; };
}) aliases }) aliases
); );