Redirect le43.eu to authentik hompage

This commit is contained in:
Théo Barnouin 2024-10-18 14:15:03 +02:00
parent 4486f7bc2d
commit 5e6e638910

View file

@ -10,6 +10,9 @@ in
security.acme = { security.acme = {
acceptTerms = true; acceptTerms = true;
defaults.email = "theo.barnouin@le43.eu"; defaults.email = "theo.barnouin@le43.eu";
certs."authentik.le43.eu".extraDomainNames = [
"le43.eu"
];
}; };
services = { services = {
fail2ban = { fail2ban = {
@ -74,7 +77,13 @@ in
commonHttpConfig = '' commonHttpConfig = ''
access_log syslog:server=unix:/dev/log; access_log syslog:server=unix:/dev/log;
''; '';
virtualHosts."logs.le43.eu" = { virtualHosts = {
"le43.eu" = {
forceSSL = true;
enableACME = true;
globalRedirect = "authentik.le43.eu";
};
"logs.le43.eu" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
@ -83,7 +92,7 @@ in
recommendedProxySettings = true; recommendedProxySettings = true;
}; };
}; };
virtualHosts."play.le43.eu" = { "play.le43.eu" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
@ -91,7 +100,7 @@ in
recommendedProxySettings = true; recommendedProxySettings = true;
}; };
}; };
virtualHosts."cloud.le43.eu" = { "cloud.le43.eu" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
@ -100,7 +109,7 @@ in
recommendedProxySettings = true; recommendedProxySettings = true;
}; };
}; };
virtualHosts."collabora.le43.eu" = { "collabora.le43.eu" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
@ -109,7 +118,7 @@ in
recommendedProxySettings = true; recommendedProxySettings = true;
}; };
}; };
virtualHosts."git.le43.eu" = { "git.le43.eu" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
@ -117,7 +126,7 @@ in
recommendedProxySettings = true; recommendedProxySettings = true;
}; };
}; };
virtualHosts."authentik.le43.eu" = { "authentik.le43.eu" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
@ -126,7 +135,7 @@ in
proxyWebsockets = true; proxyWebsockets = true;
}; };
}; };
virtualHosts."netbox.le43.eu" = { "netbox.le43.eu" = {
forceSSL = true; forceSSL = true;
enableACME = true; enableACME = true;
locations."/" = { locations."/" = {
@ -137,6 +146,7 @@ in
}; };
}; };
}; };
};
networking.firewall.allowedTCPPorts = [ 80 443 ]; networking.firewall.allowedTCPPorts = [ 80 443 ];
}; };
} }