photoprism fix
This commit is contained in:
parent
55c47ec2aa
commit
05038f2001
|
@ -15,37 +15,33 @@
|
||||||
services.photoprism = {
|
services.photoprism = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.unstable.photoprism;
|
package = pkgs.unstable.photoprism;
|
||||||
port = 2342;
|
port = 5152;
|
||||||
originalsPath = "/var/lib/private/photoprism/originals";
|
originalsPath = "/var/lib/private/photoprism/originals";
|
||||||
address = "0.0.0.0";
|
address = "0.0.0.0";
|
||||||
settings = {
|
settings = {
|
||||||
PHOTOPRISM_ADMIN_USER = "admin";
|
PHOTOPRISM_ADMIN_USER = "admin";
|
||||||
PHOTOPRISM_ADMIN_PASSWORD = "...";
|
PHOTOPRISM_ADMIN_PASSWORD = "photoprism"; # initial password, do change it!
|
||||||
PHOTOPRISM_DEFAULT_LOCALE = "en";
|
PHOTOPRISM_DEFAULT_LOCALE = "en";
|
||||||
PHOTOPRISM_DATABASE_DRIVER = "postgres";
|
PHOTOPRISM_DATABASE_DRIVER = "postgres";
|
||||||
PHOTOPRISM_DATABASE_NAME = "photoprism";
|
PHOTOPRISM_DATABASE_NAME = "photoprism";
|
||||||
PHOTOPRISM_DATABASE_SERVER = "/run/postgresql/";
|
PHOTOPRISM_DATABASE_SERVER = "/run/postgresql/";
|
||||||
PHOTOPRISM_DATABASE_USER = "photoprism";
|
PHOTOPRISM_DATABASE_USER = "photoprism";
|
||||||
PHOTOPRISM_SITE_URL = "http://photos.mossnet.lan:2342";
|
PHOTOPRISM_SITE_URL = "http://photos.mossnet.lan/";
|
||||||
PHOTOPRISM_SITE_TITLE = "mossnet photos";
|
PHOTOPRISM_SITE_TITLE = "mossnet photos";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
services.nginx.clientMaxBodySize = "500m";
|
||||||
|
services.nginx.recommendedProxySettings = true;
|
||||||
services.nginx.virtualHosts."photos.mossnet.lan" = {
|
services.nginx.virtualHosts."photos.mossnet.lan" = {
|
||||||
enableACME = false;
|
enableACME = false;
|
||||||
forceSSL = false;
|
forceSSL = false;
|
||||||
recommendedOptimisation = true;
|
|
||||||
recommendedGzipSettings = true;
|
|
||||||
recommendedProxySettings = true;
|
|
||||||
clientMaxBodySize = "500m";
|
|
||||||
locations."/" = {
|
locations."/" = {
|
||||||
proxyPass = "http://127.0.0.1:2342";
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
proxy_pass http://localhost:5152/;
|
||||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
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";
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue