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 = {
acceptTerms = true;
defaults.email = "theo.barnouin@le43.eu";
certs."authentik.le43.eu".extraDomainNames = [
"le43.eu"
];
};
services = {
fail2ban = {
@ -74,7 +77,13 @@ in
commonHttpConfig = ''
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;
enableACME = true;
locations."/" = {
@ -83,7 +92,7 @@ in
recommendedProxySettings = true;
};
};
virtualHosts."play.le43.eu" = {
"play.le43.eu" = {
forceSSL = true;
enableACME = true;
locations."/" = {
@ -91,7 +100,7 @@ in
recommendedProxySettings = true;
};
};
virtualHosts."cloud.le43.eu" = {
"cloud.le43.eu" = {
forceSSL = true;
enableACME = true;
locations."/" = {
@ -100,7 +109,7 @@ in
recommendedProxySettings = true;
};
};
virtualHosts."collabora.le43.eu" = {
"collabora.le43.eu" = {
forceSSL = true;
enableACME = true;
locations."/" = {
@ -109,7 +118,7 @@ in
recommendedProxySettings = true;
};
};
virtualHosts."git.le43.eu" = {
"git.le43.eu" = {
forceSSL = true;
enableACME = true;
locations."/" = {
@ -117,7 +126,7 @@ in
recommendedProxySettings = true;
};
};
virtualHosts."authentik.le43.eu" = {
"authentik.le43.eu" = {
forceSSL = true;
enableACME = true;
locations."/" = {
@ -126,7 +135,7 @@ in
proxyWebsockets = true;
};
};
virtualHosts."netbox.le43.eu" = {
"netbox.le43.eu" = {
forceSSL = true;
enableACME = true;
locations."/" = {
@ -137,6 +146,7 @@ in
};
};
};
};
networking.firewall.allowedTCPPorts = [ 80 443 ];
};
}