box: stand up ts-reverse-proxy for immich

This commit is contained in:
Aaron Bieber 2024-09-11 14:24:23 -06:00
parent 3a22d093da
commit 7cbada35ba
No known key found for this signature in database
2 changed files with 8 additions and 2 deletions

View File

@ -14,7 +14,6 @@
immich-module = { immich-module = {
url = "github:jvanbruegge/nixpkgs/c0ee4c1770aa1ef998c977c4cc653a07ec95d9bf"; url = "github:jvanbruegge/nixpkgs/c0ee4c1770aa1ef998c977c4cc653a07ec95d9bf";
inputs.nixpkgs.follows = "unstable";
}; };
sops-nix = { sops-nix = {

View File

@ -259,6 +259,7 @@ in
services = { services = {
immich = { immich = {
enable = true; enable = true;
port = 3301;
mediaLocation = "/media/pictures/immich"; mediaLocation = "/media/pictures/immich";
machine-learning.enable = true; machine-learning.enable = true;
package = inputs.immich-module.legacyPackages."${pkgs.system}".pkgs.immich; package = inputs.immich-module.legacyPackages."${pkgs.system}".pkgs.immich;
@ -293,6 +294,12 @@ in
reversePort = 80; reversePort = 80;
reverseIP = "10.6.0.166"; reverseIP = "10.6.0.166";
}; };
"immich-service" = {
enable = true;
reverseName = "immich";
reversePort = config.services.immich.port;
reverseIP = config.services.immich.host;
};
}; };
}; };
restic = { restic = {
@ -1089,7 +1096,7 @@ in
enable = true; enable = true;
#dataDir = "/db/postgres"; #dataDir = "/db/postgres";
package = pkgs.postgresql_15; package = pkgs.postgresql_16;
enableTCPIP = true; enableTCPIP = true;
authentication = pkgs.lib.mkOverride 14 '' authentication = pkgs.lib.mkOverride 14 ''