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";
|
environmentFile = "/var/lib/authentik_secret";
|
||||||
settings = {
|
settings = {
|
||||||
email = {
|
email = {
|
||||||
host = "mail.stura.htw-dresden.de";
|
host = "mail.${config.networking.domain}";
|
||||||
port = 25;
|
port = 25;
|
||||||
username = "authentik@stura.htw-dresden.de";
|
username = "authentik@${config.networking.domain}";
|
||||||
use_tls = false;
|
use_tls = false;
|
||||||
use_ssl = false;
|
use_ssl = false;
|
||||||
from = "authentik@stura.htw-dresden.de";
|
from = "authentik@${config.networking.domain}";
|
||||||
};
|
};
|
||||||
disable_startup_analytics = true;
|
disable_startup_analytics = true;
|
||||||
avatars = "initials";
|
avatars = "initials";
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
nginx = {
|
nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableACME = 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
|
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
|
||||||
|
|
||||||
networking.hostName = "authentik";
|
networking.hostName = "authentik";
|
||||||
|
networking.domain = "test.htw.stura-dresden.de";
|
||||||
networking.interfaces.ens18.ipv4.addresses = [
|
networking.interfaces.ens18.ipv4.addresses = [
|
||||||
{
|
{
|
||||||
address = "141.56.51.18";
|
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-Proto $scheme;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
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;
|
enableACME = true;
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
# locations."/" = {
|
# locations."/" = {
|
||||||
|
|
@ -86,7 +87,7 @@
|
||||||
};
|
};
|
||||||
serve.enable=true;
|
serve.enable=true;
|
||||||
webHosts = [
|
webHosts = [
|
||||||
"lists.htw.stura-dresden.de"
|
"lists.${config.networking.domain}"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -100,11 +101,11 @@
|
||||||
"hash:/var/lib/mailman/data/postfix_lmtp"
|
"hash:/var/lib/mailman/data/postfix_lmtp"
|
||||||
];
|
];
|
||||||
|
|
||||||
services.mailman.siteOwner = "mailman@htw.stura-dresden.de";
|
services.mailman.siteOwner = "mailman@${config.networking.domain}";
|
||||||
mailserver = {
|
mailserver = {
|
||||||
enable = true;
|
enable = true;
|
||||||
fqdn = "mail.htw.stura-dresden.de";
|
fqdn = "mail.${config.networking.fqdn}";
|
||||||
domains = [ "htw.stura-dresden.de" "mail.htw.stura-dresden.de" ];
|
domains = [ "${config.networking.domain}" "lists.${config.networking.domain}" ];
|
||||||
ldap = {
|
ldap = {
|
||||||
enable = true;
|
enable = true;
|
||||||
bind = {
|
bind = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue