From e1b672bf8262002e8550c3d60d6eb61d87509441 Mon Sep 17 00:00:00 2001 From: chaos Date: Mon, 16 Dec 2024 15:42:48 +0000 Subject: [PATCH] work on photoprism --- hosts/hetzner-arm/profiles/photoprism.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/hosts/hetzner-arm/profiles/photoprism.nix b/hosts/hetzner-arm/profiles/photoprism.nix index e4dd0c9..b276c28 100644 --- a/hosts/hetzner-arm/profiles/photoprism.nix +++ b/hosts/hetzner-arm/profiles/photoprism.nix @@ -72,19 +72,27 @@ in { services.photoprism = { enable = true; - originalsPath = "/Photos"; + originalsPath = "/Photos/originals"; settings = { PHOTOPRISM_SITE_URL = "https://photoprism.owo.monster"; - PHOTOPRISM_DISABLE_PLACES = "true"; + PHOTOPRISM_SITE_TITLE = "PhotoPrism"; + + PHOTOPRISM_SIDECAR_PATH = "/Photos/sidecar"; + PHOTOPRISM_DISABLE_TENSORFLOW = "true"; + PHOTOPRISM_DISABLE_PLACES = "true"; PHOTOPRISM_DETECT_NSFW = "false"; PHOTOPRISM_UPLOAD_NSFW = "true"; PHOTOPRISM_DISABLE_FACES = "true"; PHOTOPRISM_DISABLE_CLASSIFICATION = "true"; - PHOTOPRISM_SITE_TITLE = "PhotoPrism"; }; }; + systemd.services.photoprism.serviceConfig = { + DynamicUser = false; + ReadWritePaths = [ "/Photos" ]; + }; + services.nginx.virtualHosts."photoprism.owo.monster" = { forceSSL = true; enableACME = true;