photoprism-test-vm/photoprism.nix

28 lines
656 B
Nix

{ lib, modulesPath, ... }:
{
services.photoprism = {
enable = true;
port = 2342;
settings = {
PHOTOPRISM_DEFAULT_LOCALE = "fr";
PHOTOPRISM_ADMIN_USERNAME = "admin";
PHOHOPRISM_SITE_URL = "https://photoprism.cgiga.fr";
PHOTOPRISM_SITE_CAPTION = "PhotoPrism";
};
#originalsPath = "/photoprism/photos";
#importPath = "/photoprism/imports";
address = "localhost";
#passwordFile = "/passwords/photoprism";
};
services.nginx.virtualHosts."photoprism.cgiga.fr" = {
enableACME = true;
forceSSL = true;
serverAliases = [];
locations."/".proxyPass = "http://localhost:2342/";
};
}