Add nginx vhosts for self-hosted services
This commit is contained in:
parent
c01820a33b
commit
dbd0c993b3
|
@ -21,7 +21,10 @@
|
|||
|
||||
imports = [
|
||||
inputs.agenix.nixosModules.default
|
||||
|
||||
./configuration.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_UID" = "1000";
|
||||
"REDIS_HOST" = "archivist-redis";
|
||||
"TA_HOST" = "tubearchivist.local";
|
||||
"TA_HOST" = "tubearchivist.localhost";
|
||||
"TZ" = "Europe/London";
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue