fix nginx config
This commit is contained in:
parent
65d4ede767
commit
275f897db8
|
@ -49,12 +49,12 @@ in {
|
||||||
originalsPath = "/Photos";
|
originalsPath = "/Photos";
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."vault.owo.monster" = {
|
services.nginx.virtualHosts."photoprism.owo.monster" = {
|
||||||
forceSSL = true;
|
forceSSL = true;
|
||||||
enableACME = true;
|
enableACME = true;
|
||||||
locations = {
|
locations = {
|
||||||
"/" = {
|
"/" = {
|
||||||
proxyPass = "http://127.0.0.1:8200";
|
proxyPass = "http://127.0.0.1:${config.services.photoprism.port}";
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
|
Loading…
Reference in a new issue