change domain with global variable
This commit is contained in:
parent
901fe06ea2
commit
bf20467381
2 changed files with 11 additions and 10 deletions
|
|
@ -15,12 +15,12 @@
|
|||
environmentFile = "/var/lib/authentik_secret";
|
||||
settings = {
|
||||
email = {
|
||||
host = "mail.stura.htw-dresden.de";
|
||||
host = "mail.${config.networking.domain}";
|
||||
port = 25;
|
||||
username = "authentik@stura.htw-dresden.de";
|
||||
username = "authentik@${config.networking.domain}";
|
||||
use_tls = false;
|
||||
use_ssl = false;
|
||||
from = "authentik@stura.htw-dresden.de";
|
||||
from = "authentik@${config.networking.domain}";
|
||||
};
|
||||
disable_startup_analytics = true;
|
||||
avatars = "initials";
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
nginx = {
|
||||
enable = true;
|
||||
enableACME = true;
|
||||
host = "auth.htw.stura-dresden.de";
|
||||
host = "auth.${config.networking.domain}";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,6 +19,7 @@
|
|||
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
|
||||
|
||||
networking.hostName = "authentik";
|
||||
networking.domain = "test.htw.stura-dresden.de";
|
||||
networking.interfaces.ens18.ipv4.addresses = [
|
||||
{
|
||||
address = "141.56.51.18";
|
||||
|
|
@ -68,11 +69,11 @@
|
|||
'';
|
||||
};
|
||||
|
||||
services.nginx.virtualHosts."auth.htw.stura-dresden.de".locations."/".extraConfig = ''
|
||||
services.nginx.virtualHosts."auth.test.htw.stura-dresden.de".locations."/".extraConfig = ''
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
'';
|
||||
services.nginx.virtualHosts."lists.htw.stura-dresden.de" = {
|
||||
services.nginx.virtualHosts."lists.${config.networking.domain}" = {
|
||||
enableACME = true;
|
||||
forceSSL = true;
|
||||
# locations."/" = {
|
||||
|
|
@ -86,7 +87,7 @@
|
|||
};
|
||||
serve.enable=true;
|
||||
webHosts = [
|
||||
"lists.htw.stura-dresden.de"
|
||||
"lists.${config.networking.domain}"
|
||||
];
|
||||
};
|
||||
|
||||
|
|
@ -100,11 +101,11 @@
|
|||
"hash:/var/lib/mailman/data/postfix_lmtp"
|
||||
];
|
||||
|
||||
services.mailman.siteOwner = "mailman@htw.stura-dresden.de";
|
||||
services.mailman.siteOwner = "mailman@${config.networking.domain}";
|
||||
mailserver = {
|
||||
enable = true;
|
||||
fqdn = "mail.htw.stura-dresden.de";
|
||||
domains = [ "htw.stura-dresden.de" "mail.htw.stura-dresden.de" ];
|
||||
fqdn = "mail.${config.networking.fqdn}";
|
||||
domains = [ "${config.networking.domain}" "lists.${config.networking.domain}" ];
|
||||
ldap = {
|
||||
enable = true;
|
||||
bind = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue