photoprism-test-vm/photoprism.nix

28 lines
601 B
Nix
Raw Normal View History

{ lib, modulesPath, ... }:
{
services.photoprism = {
enable = true;
#default port: 2342
settings = {
PHOTOPRISM_DEFAULT_LOCALE = "fr";
PHOTOPRISM_ADMIN_USERNAME = "admin";
PHOTOPRISM_SITE_CAPTION = "PhotoPrism";
};
originalsPath = "/photoprism/photos";
importPath = "/photoprism/imports";
address = "localhost";
passwordFile = "/passwords/photoprism";
};
2024-10-14 14:53:27 +02:00
2024-11-03 16:24:07 +01:00
services.nginx.virtualHosts."photoprism.cgiga.fr" = {
2024-10-14 14:53:27 +02:00
enableACME = true;
forceSSL = true;
serverAliases = [];
locations."/".proxyPass = "http://localhost:2342/";
};
}