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