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 ==


PhotoPrism is currently packaged in the [https://search.nixos.org/options?channel=unstable&from=0&size=50&sort=alpha_asc&type=packages&query=photoprism unstable] channel. To install it add to your <code>configuration.nix</code>:
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;
            proxy_set_header Upgrade $http_upgrade;
            proxy_set_header Connection "upgrade";
           '';
           '';
         };
         };