fuuko/photoprism: Make reachable from outside

This is not that good, because if I am at home, I want to have a fast
connection without routing everything through the Internet first. I
currently work around this by using an ssh tunnel for this.
nazuna
Simon Bruder 2023-08-19 17:30:52 +02:00
parent 6b8931d538
commit 0d92c932ed
Signed by: simon
GPG Key ID: 8D3C82F9F309F8EC
2 changed files with 13 additions and 0 deletions

View File

@ -4,9 +4,21 @@
services.photoprism = {
enable = true;
originalsPath = "/data/cold/photoprism";
settings = {
PHOTOPRISM_SITE_URL = "https://photoprism.sbruder.de/";
};
};
sbruder.restic.system.extraExcludes = [
"/var/lib/private/photoprism"
];
services.nginx.virtualHosts."photoprism.sbruder.de" = {
locations = {
"/" = {
proxyPass = "http://127.0.0.1:${toString config.services.photoprism.port}";
proxyWebsockets = true;
};
};
};
}

View File

@ -14,6 +14,7 @@
[
"languagetool.sbruder.de"
"media.sbruder.de"
"photoprism.sbruder.de"
"torrent.sbruder.de"
]);
}