this repo has no description
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

photoprism fix

+6 -10
+6 -10
hosts/profiles/photoprism/default.nix
··· 15 15 services.photoprism = { 16 16 enable = true; 17 17 package = pkgs.unstable.photoprism; 18 - port = 2342; 18 + port = 5152; 19 19 originalsPath = "/var/lib/private/photoprism/originals"; 20 20 address = "0.0.0.0"; 21 21 settings = { 22 22 PHOTOPRISM_ADMIN_USER = "admin"; 23 - PHOTOPRISM_ADMIN_PASSWORD = "..."; 23 + PHOTOPRISM_ADMIN_PASSWORD = "photoprism"; # initial password, do change it! 24 24 PHOTOPRISM_DEFAULT_LOCALE = "en"; 25 25 PHOTOPRISM_DATABASE_DRIVER = "postgres"; 26 26 PHOTOPRISM_DATABASE_NAME = "photoprism"; 27 27 PHOTOPRISM_DATABASE_SERVER = "/run/postgresql/"; 28 28 PHOTOPRISM_DATABASE_USER = "photoprism"; 29 - PHOTOPRISM_SITE_URL = "http://photos.mossnet.lan:2342"; 29 + PHOTOPRISM_SITE_URL = "http://photos.mossnet.lan/"; 30 30 PHOTOPRISM_SITE_TITLE = "mossnet photos"; 31 31 }; 32 32 }; 33 33 34 + services.nginx.clientMaxBodySize = "500m"; 35 + services.nginx.recommendedProxySettings = true; 34 36 services.nginx.virtualHosts."photos.mossnet.lan" = { 35 37 enableACME = false; 36 38 forceSSL = false; 37 - recommendedOptimisation = true; 38 - recommendedGzipSettings = true; 39 - recommendedProxySettings = true; 40 - clientMaxBodySize = "500m"; 41 39 locations."/" = { 42 - proxyPass = "http://127.0.0.1:2342"; 43 40 extraConfig = '' 41 + proxy_pass http://localhost:5152/; 44 42 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 45 43 proxy_buffering off; 46 44 proxy_http_version 1.1; 47 - proxy_set_header Upgrade $http_upgrade; 48 - proxy_set_header Connection "upgrade"; 49 45 ''; 50 46 }; 51 47 };