2024-01-06 01:19:35 +01:00
|
|
|
# SPDX-FileCopyrightText: 2023 Simon Bruder <simon@sbruder.de>
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
|
2023-08-18 22:17:02 +02:00
|
|
|
{ config, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
services.photoprism = {
|
|
|
|
enable = true;
|
|
|
|
originalsPath = "/data/cold/photoprism";
|
2023-08-19 17:30:52 +02:00
|
|
|
settings = {
|
|
|
|
PHOTOPRISM_SITE_URL = "https://photoprism.sbruder.de/";
|
|
|
|
};
|
2023-08-18 22:17:02 +02:00
|
|
|
};
|
|
|
|
|
2024-08-22 16:13:13 +02:00
|
|
|
sbruder.restic.backups.system.extraExcludes = [
|
2023-08-18 22:17:02 +02:00
|
|
|
"/var/lib/private/photoprism"
|
|
|
|
];
|
2023-08-19 17:30:52 +02:00
|
|
|
|
|
|
|
services.nginx.virtualHosts."photoprism.sbruder.de" = {
|
|
|
|
locations = {
|
|
|
|
"/" = {
|
|
|
|
proxyPass = "http://127.0.0.1:${toString config.services.photoprism.port}";
|
|
|
|
proxyWebsockets = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-08-18 22:17:02 +02:00
|
|
|
}
|