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,65 +77,72 @@ in
commonHttpConfig = '' commonHttpConfig = ''
access_log syslog:server=unix:/dev/log; access_log syslog:server=unix:/dev/log;
''; '';
virtualHosts."logs.le43.eu" = { virtualHosts = {
forceSSL = true; "le43.eu" = {
enableACME = true; forceSSL = true;
locations."/" = { enableACME = true;
proxyPass = "http://192.168.1.20:3000"; globalRedirect = "authentik.le43.eu";
proxyWebsockets = true;
recommendedProxySettings = true;
}; };
}; "logs.le43.eu" = {
virtualHosts."play.le43.eu" = { forceSSL = true;
forceSSL = true; enableACME = true;
enableACME = true; locations."/" = {
locations."/" = { proxyPass = "http://192.168.1.20:3000";
proxyPass = "http://192.168.1.42:8096"; proxyWebsockets = true;
recommendedProxySettings = true; recommendedProxySettings = true;
};
}; };
}; "play.le43.eu" = {
virtualHosts."cloud.le43.eu" = { forceSSL = true;
forceSSL = true; enableACME = true;
enableACME = true; locations."/" = {
locations."/" = { proxyPass = "http://192.168.1.42:8096";
proxyPass = "http://192.168.1.44"; recommendedProxySettings = true;
proxyWebsockets = true; };
recommendedProxySettings = true;
}; };
}; "cloud.le43.eu" = {
virtualHosts."collabora.le43.eu" = { forceSSL = true;
forceSSL = true; enableACME = true;
enableACME = true; locations."/" = {
locations."/" = { proxyPass = "http://192.168.1.44";
proxyPass = "http://192.168.1.46:9980"; proxyWebsockets = true;
proxyWebsockets = true; recommendedProxySettings = true;
recommendedProxySettings = true; };
}; };
}; "collabora.le43.eu" = {
virtualHosts."git.le43.eu" = { forceSSL = true;
forceSSL = true; enableACME = true;
enableACME = true; locations."/" = {
locations."/" = { proxyPass = "http://192.168.1.46:9980";
proxyPass = "http://192.168.1.14:3000"; proxyWebsockets = true;
recommendedProxySettings = true; recommendedProxySettings = true;
};
}; };
}; "git.le43.eu" = {
virtualHosts."authentik.le43.eu" = { forceSSL = true;
forceSSL = true; enableACME = true;
enableACME = true; locations."/" = {
locations."/" = { proxyPass = "http://192.168.1.14:3000";
proxyPass = "http://192.168.1.125:9000"; recommendedProxySettings = true;
recommendedProxySettings = true; };
proxyWebsockets = true;
}; };
}; "authentik.le43.eu" = {
virtualHosts."netbox.le43.eu" = { forceSSL = true;
forceSSL = true; enableACME = true;
enableACME = true; locations."/" = {
locations."/" = { proxyPass = "http://192.168.1.125:9000";
proxyPass = "http://192.168.1.45"; recommendedProxySettings = true;
recommendedProxySettings = true; proxyWebsockets = true;
proxyWebsockets = true; };
};
"netbox.le43.eu" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://192.168.1.45";
recommendedProxySettings = true;
proxyWebsockets = true;
};
}; };
}; };
}; };