diff --git a/systems/LoutreOS/services.nix b/systems/LoutreOS/services.nix index 4d496d74d..cb0cdfb19 100644 --- a/systems/LoutreOS/services.nix +++ b/systems/LoutreOS/services.nix @@ -545,6 +545,15 @@ in #]; }; }; + + photoprism = { + enable = true; + originalsPath = "/mnt/backup_loutre/amandoleen/d/Users/Amand/Pictures"; + extraConfig = { + PHOTOPRISM_AUTH_MODE = "public"; + PHOTOPRISM_READONLY = true; + }; + }; }; systemd.services."borgbackup-job-loutre".serviceConfig.TemporaryFileSystem = ["/mnt/borgsnap"]; diff --git a/systems/LoutreOS/web.nix b/systems/LoutreOS/web.nix index 946980433..c7f01693a 100644 --- a/systems/LoutreOS/web.nix +++ b/systems/LoutreOS/web.nix @@ -260,6 +260,11 @@ 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) { + locations."/" = { + proxyWebsockets = true; + }; + }; "apart.nyanlout.re" = recursiveUpdate (simpleReverse config.services.home-assistant.config.http.server_port) { locations."/" = { proxyWebsockets = true;