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.
This commit is contained in:
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 = { services.photoprism = {
enable = true; enable = true;
originalsPath = "/data/cold/photoprism"; originalsPath = "/data/cold/photoprism";
settings = {
PHOTOPRISM_SITE_URL = "https://photoprism.sbruder.de/";
};
}; };
sbruder.restic.system.extraExcludes = [ sbruder.restic.system.extraExcludes = [
"/var/lib/private/photoprism" "/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" "languagetool.sbruder.de"
"media.sbruder.de" "media.sbruder.de"
"photoprism.sbruder.de"
"torrent.sbruder.de" "torrent.sbruder.de"
]); ]);
} }