Add nginx vhosts for self-hosted services
This commit is contained in:
parent
c01820a33b
commit
dbd0c993b3
4 changed files with 16 additions and 2 deletions
nix/hosts/lemp11
|
@ -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/";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue