PhotoPrism: Difference between revisions
imported>Sjau Created page with "==What is PhotoPrism == [https://www.photoprism.app/ PhotoPrism] is an AI-Powered Photos App for the Decentralized Web. It makes use of the latest technologies to tag and find..." |
drop 23.11 |
||
| (3 intermediate revisions by 3 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 43: | Line 43: | ||
* You can set a lot more photoprism settings. The complete list of options (except the ones for sponsors) can be found [https://docs.photoprism.app/getting-started/config-options/ here]. | * You can set a lot more photoprism settings. The complete list of options (except the ones for sponsors) can be found [https://docs.photoprism.app/getting-started/config-options/ here]. | ||
* Because we use the socket for the database, no database user password is required to specify. | * Because we use the socket for the database, no database user password is required to specify. | ||
* Make sure there are no unexpected files or folders in <code>/</code>. Otherwise Photoprism will complain and not start. | |||
== Setup MariaDB / MySQL == | == Setup MariaDB / MySQL == | ||
| Line 90: | 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; | ||
''; | ''; | ||
}; | }; | ||