defiant: update public nginx redirects

This commit is contained in:
Felix Albrigtsen 2024-06-06 20:47:15 +02:00
parent 541602b594
commit a6691418ec
1 changed files with 13 additions and 6 deletions

View File

@ -31,7 +31,7 @@
# Publicly exposed services:
services.nginx.virtualHosts = let
publicProxy = upstream: {
publicProxy = upstream: overrides: {
listen = [
{ addr = "192.168.10.175"; port = 43443; ssl = true; }
{ addr = "192.168.10.175"; port = 43080; ssl = false; }
@ -49,11 +49,18 @@
server_tokens off;
'';
};
} // overrides;
in {
"auth.feal.no" = publicProxy "https://voyager.home.feal.no";
"cloud.feal.no" = publicProxy "http://voyager.home.feal.no";
"git.feal.no" = publicProxy "http://unix:${config.services.gitea.settings.server.HTTP_ADDR}";
"jf.feal.no" = publicProxy "http://jellyfin.home.feal.no/";
"auth.feal.no" = publicProxy "" {
locations."/" = {
proxyPass = "https://voyager.home.feal.no:8300";
extraConfig = ''
proxy_ssl_verify off;
'';
};
};
"cloud.feal.no" = publicProxy "http://voyager.home.feal.no" {};
"git.feal.no" = publicProxy "http://unix:${config.services.gitea.settings.server.HTTP_ADDR}" {};
"jf.feal.no" = publicProxy "http://jellyfin.home.feal.no/" {};
};
}