Add nginx vhosts for self-hosted services

This commit is contained in:
Oliver Davies 2024-12-10 00:10:36 +00:00
parent c01820a33b
commit dbd0c993b3
4 changed files with 16 additions and 2 deletions

View file

@ -21,7 +21,10 @@
imports = [ imports = [
inputs.agenix.nixosModules.default inputs.agenix.nixosModules.default
./configuration.nix ./configuration.nix
./secrets.nix ./secrets.nix
./modules/nginx.nix
]; ];
} }

View file

@ -0,0 +1,12 @@
{
services.nginx = {
enable = true;
virtualHosts = {
"gitea.localhost".locations."/".proxyPass = "http://localhost:2222/";
"immich.localhost".locations."/".proxyPass = "http://localhost:2283/";
"jellyfin.localhost".locations."/".proxyPass = "http://localhost:8096/";
"tubearchivist.localhost".locations."/".proxyPass = "http://localhost:8000/";
};
};
}

View file

@ -132,7 +132,7 @@ in
"HOST_GID" = "1000"; "HOST_GID" = "1000";
"HOST_UID" = "1000"; "HOST_UID" = "1000";
"REDIS_HOST" = "archivist-redis"; "REDIS_HOST" = "archivist-redis";
"TA_HOST" = "tubearchivist.local"; "TA_HOST" = "tubearchivist.localhost";
"TZ" = "Europe/London"; "TZ" = "Europe/London";
}; };

View file

@ -1,5 +1,4 @@
Use nixosModules and homeManagerModules outputs in flake.nix to simplify importing modules Use nixosModules and homeManagerModules outputs in flake.nix to simplify importing modules
Use nginx for jellyfin, immich and gitea
Add daily script Add daily script
Add create-podcast-tasks script Add create-podcast-tasks script
Add vaultwarden for password management Add vaultwarden for password management