mirror of
https://github.com/gensokyo-zone/infrastructure.git
synced 2026-02-09 12:29:19 -08:00
chore(idp): clean up ssl config a little
This commit is contained in:
parent
3495b5285e
commit
97d9eecd3c
2 changed files with 7 additions and 8 deletions
|
|
@ -181,13 +181,19 @@ in {
|
|||
virtualHosts = {
|
||||
${access.domain} = {
|
||||
inherit locations extraConfig;
|
||||
inherit (access) useACMEHost;
|
||||
forceSSL = mkDefault (access.useACMEHost != null);
|
||||
};
|
||||
${access.globalDomain} = {
|
||||
inherit locations extraConfig;
|
||||
inherit (access) useACMEHost;
|
||||
forceSSL = mkDefault (access.useACMEHost != null || virtualHosts.${access.domain}.forceSSL);
|
||||
};
|
||||
${access.caDomain} = {
|
||||
locations = caLocations;
|
||||
inherit extraConfig;
|
||||
inherit (access) useACMEHost;
|
||||
forceSSL = mkDefault (access.useACMEHost != null || virtualHosts.${access.domain}.forceSSL);
|
||||
};
|
||||
${access.localDomain} = {
|
||||
inherit (virtualHosts.${access.domain}) useACMEHost;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue