Add nginx vhosts for self-hosted services
This commit is contained in:
parent
c01820a33b
commit
dbd0c993b3
|
@ -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
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
12
nix/hosts/lemp11/modules/nginx.nix
Normal file
12
nix/hosts/lemp11/modules/nginx.nix
Normal 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/";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -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";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
1
todo.txt
1
todo.txt
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue