From 30faf02d276ddde1a9c176ced32bf36ed9162f91 Mon Sep 17 00:00:00 2001 From: nyanloutre Date: Thu, 18 May 2023 20:23:02 +0200 Subject: [PATCH] create photoprism accounts --- systems/LoutreOS/services.nix | 3 ++- systems/LoutreOS/web.nix | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/systems/LoutreOS/services.nix b/systems/LoutreOS/services.nix index 3b8df046c..e02810492 100644 --- a/systems/LoutreOS/services.nix +++ b/systems/LoutreOS/services.nix @@ -549,9 +549,10 @@ in photoprism = { enable = true; originalsPath = "/mnt/backup_loutre/amandoleen/d/Users/Amand/Pictures"; + passwordFile = "/mnt/secrets/photoprism_pass"; settings = { - PHOTOPRISM_AUTH_MODE = "public"; PHOTOPRISM_READONLY = "1"; + PHOTOPRISM_DETECT_NSFW = "1"; PHOTOPRISM_SITE_URL = "https://photo.nyanlout.re/"; }; }; diff --git a/systems/LoutreOS/web.nix b/systems/LoutreOS/web.nix index aa7ca388c..587f5efcf 100644 --- a/systems/LoutreOS/web.nix +++ b/systems/LoutreOS/web.nix @@ -264,7 +264,7 @@ in "ci.nyanlout.re" = simpleReverse 52350; "gitea.nyanlout.re" = simpleReverse config.services.gitea.httpPort; "musique.nyanlout.re" = simpleReverse config.services.navidrome.settings.Port; - "photo.nyanlout.re" = recursiveUpdate (authReverse config.services.photoprism.port) { + "photo.nyanlout.re" = recursiveUpdate (simpleReverse config.services.photoprism.port) { locations."/" = { proxyWebsockets = true; };