2024-10-15 17:46:44 -04:00
|
|
|
{ config, ... }:
|
2024-10-09 03:36:08 -04:00
|
|
|
{
|
2024-09-10 14:45:28 -04:00
|
|
|
services = {
|
|
|
|
photoprism = {
|
|
|
|
enable = true;
|
|
|
|
port = 2342;
|
|
|
|
originalsPath = "/var/lib/private/photoprism/originals";
|
|
|
|
address = "0.0.0.0";
|
|
|
|
settings = {
|
|
|
|
PHOTOPRISM_ADMIN_USER = "jimbo";
|
2024-10-15 17:46:44 -04:00
|
|
|
PHOTOPRISM_ADMIN_PASSWORD = "${config.secrets.prismAdminPass}";
|
2024-09-10 14:45:28 -04:00
|
|
|
PHOTOPRISM_DEFAULT_LOCALE = "en";
|
|
|
|
PHOTOPRISM_DATABASE_DRIVER = "mysql";
|
|
|
|
PHOTOPRISM_DATABASE_NAME = "photoprism";
|
|
|
|
PHOTOPRISM_DATABASE_SERVER = "/run/mysqld/mysqld.sock";
|
|
|
|
PHOTOPRISM_DATABASE_USER = "photoprism";
|
2024-10-15 17:46:44 -04:00
|
|
|
PHOTOPRISM_SITE_URL = "https://gallery.${config.secrets.jimDomain}";
|
2024-09-10 14:45:28 -04:00
|
|
|
PHOTOPRISM_SITE_TITLE = "Jimbo's PhotoPrism";
|
|
|
|
};
|
|
|
|
};
|
2024-10-15 17:46:44 -04:00
|
|
|
nginx.virtualHosts."gallery.${config.secrets.jimDomain}" = {
|
2024-09-10 14:45:28 -04:00
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
|
|
|
locations."/" = {
|
|
|
|
proxyPass = "http://127.0.0.1:2342";
|
|
|
|
proxyWebsockets = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|