feat(rpi4): add photoprism

This commit is contained in:
Felix Schröter 2021-04-04 18:49:39 +02:00
parent e444b0818e
commit 5b58081b61
No known key found for this signature in database
GPG key ID: 910ACB9F6BD26F58
5 changed files with 114 additions and 11 deletions

24
services/photoprism.nix Normal file
View file

@ -0,0 +1,24 @@
{ pkgs, config, ... }:
{
environment.systemPackages = [ pkgs.photoprism ];
services.nginx = {
enable = true;
virtualHosts."photos.felschr.com" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass =
"http://localhost:${toString config.services.photoprism.port}";
proxyWebsockets = true;
extraConfig = ''
client_max_body_size 100M;
proxy_read_timeout 300s;
'';
};
};
};
services.photoprism.enable = true;
}