From 16138921fd0c561a712b604afa5b4a85e084578f Mon Sep 17 00:00:00 2001 From: Jordan Holt Date: Sun, 31 Mar 2024 20:45:16 +0100 Subject: [PATCH] Add photoprism originalsPath --- modules/services/photoprism/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/services/photoprism/default.nix b/modules/services/photoprism/default.nix index 3dbdcfe..3232d40 100644 --- a/modules/services/photoprism/default.nix +++ b/modules/services/photoprism/default.nix @@ -17,7 +17,7 @@ in { "gallery.vimium.com" = { forceSSL = true; enableACME = true; - locations."/".proxyPass = "http://localhost:${config.services.photoprism.port}"; + locations."/".proxyPass = "http://localhost:${toString config.services.photoprism.port}"; }; }; }; @@ -30,13 +30,14 @@ in { enable = true; address = "localhost"; passwordFile = config.age.secrets."passwords/services/photoprism/admin".path; + originalsPath = "${config.services.photoprism.storagePath}/originals"; settings = { PHOTOPRISM_APP_NAME = "Vimium Gallery"; PHOTOPRISM_SITE_AUTHOR = "Vimium"; PHOTOPRISM_SITE_TITLE = "Vimium Gallery"; PHOTOPRISM_SITE_CAPTION = "See your photos and videos on gallery.vimium.com"; - PHOTOPRISM_DISABLE_TLS = true; - PHOTOPRISM_SPONSOR = true; + PHOTOPRISM_DISABLE_TLS = "true"; + PHOTOPRISM_SPONSOR = "true"; }; }; };