update core data

This commit is contained in:
Julien Malka 2024-03-30 12:09:03 +01:00
parent 1981dc3113
commit 6018b615cc
Signed by: Luj
GPG key ID: 6FC74C847011FD83

View file

@ -75,12 +75,15 @@
services.tailscale.enable = true;
services.openssh.settings.PermitRootLogin = "yes";
services.openssh.settings.PasswordAuthentication = lib.mkForce true;
# Photoprism
services.photoprism = {
enable = true;
port = 2342;
originalsPath = "/data/photos";
passwordFile = "/srv/photoprism";
importPath = "import";
address = "0.0.0.0";
settings = {
@ -97,7 +100,6 @@
services.mysql = {
enable = true;
dataDir = "/data/mysql";
package = pkgs.mariadb;
ensureDatabases = [ "photoprism" ];
ensureUsers = [{
@ -119,15 +121,10 @@
"photos.malka.family" = {
forceSSL = true;
enableACME = true;
http2 = true;
locations."/" = {
proxyPass = "http://127.0.0.1:2342";
proxyPass = "http://0.0.0.0:2342";
proxyWebsockets = true;
extraConfig = ''
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Host $host;
proxy_buffering off;
proxy_http_version 1.1;
'';
};
};
};