Skip to content

Commit

Permalink
immich: setup
Browse files Browse the repository at this point in the history
  • Loading branch information
xanderio committed Oct 4, 2024
1 parent 48690c1 commit 4026564
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions hosts/vetinari/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
./shairport.nix
./incus.nix
./libvirt.nix
./immich.nix
../../modules/server
{ home-manager.users.xanderio.imports = homeImports."server"; }
];
Expand Down
19 changes: 19 additions & 0 deletions hosts/vetinari/immich.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{config, ...}:{
config = {
services.immich = {
enable = true;
};

services.nginx = {
enable = true;
virtualHosts."immich.xanderio.de" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://${config.services.immich.host}:${toString config.services.immich.port}";
proxyWebsockets = true;
};
};
};
};
}

0 comments on commit 4026564

Please sign in to comment.