mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-08 06:30:18 +02:00
huge refactoring
This commit is contained in:
parent
5b0a327f50
commit
5cc4714fbb
13 changed files with 74 additions and 71 deletions
|
@ -78,7 +78,6 @@
|
||||||
"/srv/Minecraft"
|
"/srv/Minecraft"
|
||||||
];
|
];
|
||||||
postgresql_databases = [
|
postgresql_databases = [
|
||||||
{ name = "forgejo"; }
|
|
||||||
{ name = "nextcloud"; }
|
{ name = "nextcloud"; }
|
||||||
{ name = "matrix-synapse"; }
|
{ name = "matrix-synapse"; }
|
||||||
];
|
];
|
||||||
|
|
|
@ -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
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,4 +10,8 @@
|
||||||
enableKepubify = true;
|
enableKepubify = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.caddy.virtualHosts."http://books.hypervirtual.world".extraConfig = ''
|
||||||
|
reverse_proxy :8083
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
'';
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
|
|
||||||
services.prometheus = {
|
services.prometheus = {
|
||||||
enable = true;
|
enable = true;
|
||||||
exporters = {
|
exporters = {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,4 +8,8 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.caddy.virtualHosts."http://grafana.sisyphe.normandy.hypervirtual.world".extraConfig = ''
|
||||||
|
reverse_proxy :3000
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
'';
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue