PhotoPrism: Difference between revisions
imported>Flyfloh No edit summary |
drop 23.11 |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 13: | Line 13: | ||
== Setup PhotoPrism == | == Setup PhotoPrism == | ||
To install PhotoPrism add to your <code>configuration.nix</code>: | |||
<syntaxhighlight lang="nix"> | <syntaxhighlight lang="nix"> | ||
Line 91: | Line 91: | ||
locations."/" = { | locations."/" = { | ||
proxyPass = "http://127.0.0.1:2342"; | proxyPass = "http://127.0.0.1:2342"; | ||
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; | ||
proxy_set_header Host $host; | |||
proxy_buffering off; | proxy_buffering off; | ||
proxy_http_version 1.1; | proxy_http_version 1.1; | ||
''; | ''; | ||
}; | }; |