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:
parent
6b8931d538
commit
0d92c932ed
|
@ -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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue