huge refactoring

This commit is contained in:
kity 2024-10-30 17:44:54 +01:00
parent 5b0a327f50
commit 5cc4714fbb
13 changed files with 74 additions and 71 deletions

View file

@ -78,7 +78,6 @@
"/srv/Minecraft" "/srv/Minecraft"
]; ];
postgresql_databases = [ postgresql_databases = [
{ name = "forgejo"; }
{ name = "nextcloud"; } { name = "nextcloud"; }
{ name = "matrix-synapse"; } { name = "matrix-synapse"; }
]; ];

View file

@ -4,81 +4,13 @@
enable = true; enable = true;
virtualHosts = { virtualHosts = {
"http://sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :8082
'';
"http://git.hypervirtual.world".extraConfig = ''
reverse_proxy :3333
'';
"http://books.hypervirtual.world".extraConfig = ''
reverse_proxy :8083
'';
"http://fish.hypervirtual.world".extraConfig = '' "http://fish.hypervirtual.world".extraConfig = ''
reverse_proxy :3030 reverse_proxy :3030
''; '';
"http://jellyfin.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :8096
'';
"http://media.hypervirtual.world".extraConfig = ''
reverse_proxy :8096
'';
"http://slskd.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :5030
'';
"http://radarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :7878
'';
"http://sonarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :8989
'';
"http://sonarr-anime.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :8999
'';
"http://prowlarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :9696
'';
"http://grafana.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :3000
'';
"http://status.hypervirtual.world".extraConfig = ''
reverse_proxy :4000
'';
"http://transmission.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :9091
'';
"http://uptime.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :4000
'';
"http://mc.sisyphe.normandy.hypervirtual.world".extraConfig = '' "http://mc.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :8443 reverse_proxy :8443
''; '';
"http://katflix.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :5055
'';
"http://bazarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :6767
'';
"http://bazarr-anime.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :6777
'';
}; };
}; };

View file

@ -55,4 +55,33 @@ in
}; };
*/ */
services.caddy.virtualHosts = {
"http://radarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :7878
'';
"http://sonarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :8989
'';
"http://sonarr-anime.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :8999
'';
"http://prowlarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :9696
'';
"http://katflix.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :5055
'';
"http://bazarr.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :6767
'';
"http://bazarr-anime.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :6777
'';
};
} }

View file

@ -10,4 +10,8 @@
enableKepubify = true; enableKepubify = true;
}; };
}; };
services.caddy.virtualHosts."http://books.hypervirtual.world".extraConfig = ''
reverse_proxy :8083
'';
} }

View file

@ -21,4 +21,14 @@
enable = true; enable = true;
openFirewall = true; openFirewall = true;
}; };
services.caddy.virtualHosts = {
"http://jellyfin.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :8096
'';
"http://media.hypervirtual.world".extraConfig = ''
reverse_proxy :8096
'';
};
} }

View file

@ -35,5 +35,9 @@ in
directories.incomplete = "${cfg.directory}/incomplete"; directories.incomplete = "${cfg.directory}/incomplete";
}; };
}; };
services.caddy.virtualHosts."http://slskd.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :5030
'';
}; };
} }

View file

@ -39,5 +39,9 @@ in
ratio-limit-enabled = true; ratio-limit-enabled = true;
}; };
}; };
services.caddt.virtualHosts."http://transmission.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :9091
'';
}; };
} }

View file

@ -1,6 +1,5 @@
{ config, ... }: { config, ... }:
{ {
services.prometheus = { services.prometheus = {
enable = true; enable = true;
exporters = { exporters = {

View file

@ -1,7 +1,7 @@
{ config, ... }: { config, ... }:
{ {
imports = [ imports = [
./akkoma.nix # ./akkoma.nix
./homelab-dashboard.nix ./homelab-dashboard.nix
./nextcloud.nix ./nextcloud.nix
# ./photoprism.nix # ./photoprism.nix

View file

@ -40,4 +40,8 @@
create="${lib.getExe config.services.forgejo.package} admin user create" create="${lib.getExe config.services.forgejo.package} admin user create"
$create --admin --email "`cat ${config.sops.secrets.forgejoInitialMail.path}`" --username you --password "`cat ${config.sops.secrets.forgejoInitialPassword.path}`" &>/dev/null || true $create --admin --email "`cat ${config.sops.secrets.forgejoInitialMail.path}`" --username you --password "`cat ${config.sops.secrets.forgejoInitialPassword.path}`" &>/dev/null || true
''; '';
services.caddy.virtualHosts."http://git.hypervirtual.world".extraConfig = ''
reverse_proxy :3333
'';
} }

View file

@ -8,4 +8,8 @@
}; };
}; };
}; };
services.caddy.virtualHosts."http://grafana.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :3000
'';
} }

View file

@ -38,6 +38,10 @@ in
format = "dotenv"; format = "dotenv";
}; };
services.caddy.virtualHosts."http://sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :8082
'';
services.homepage-dashboard = { services.homepage-dashboard = {
enable = true; enable = true;
environmentFile = config.sops.secrets."homepage".path; environmentFile = config.sops.secrets."homepage".path;

View file

@ -7,4 +7,14 @@
PORT = "4000"; PORT = "4000";
}; };
}; };
services.caddy.virtualHosts."http://status.hypervirtual.world".extraConfig = ''
reverse_proxy :4000
'';
services.caddy.virtualHosts."http://uptime.sisyphe.normandy.hypervirtual.world".extraConfig = ''
reverse_proxy :4000
'';
} }