2024-10-09 00:04:46 +02:00
|
|
|
{ lib, modulesPath, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
services.photoprism = {
|
|
|
|
enable = true;
|
|
|
|
#default port: 2342
|
|
|
|
settings = {
|
|
|
|
PHOTOPRISM_DEFAULT_LOCALE = "fr";
|
|
|
|
PHOTOPRISM_ADMIN_USERNAME = "admin";
|
|
|
|
PHOTOPRISM_SITE_CAPTION = "PhotoPrism";
|
|
|
|
};
|
|
|
|
|
2024-10-09 17:06:24 +02:00
|
|
|
originalsPath = "/photoprism/photos";
|
|
|
|
importPath = "/photoprism/imports";
|
2024-10-09 00:04:46 +02:00
|
|
|
|
2024-10-09 17:06:24 +02:00
|
|
|
address = "localhost";
|
|
|
|
|
|
|
|
passwordFile = "/passwords/photoprism";
|
2024-10-09 00:04:46 +02:00
|
|
|
};
|
2024-10-14 14:53:27 +02:00
|
|
|
|
|
|
|
services.nginx.virtualHosts."photoprism.rz01.infra.dgnum.eu" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
serverAliases = [];
|
|
|
|
locations."/".proxyPass = "http://localhost:2342/";
|
|
|
|
};
|
2024-10-09 00:04:46 +02:00
|
|
|
}
|