diff --git a/hosts/faunus-ater.nix b/hosts/faunus-ater.nix index 18b7755..2a852da 100644 --- a/hosts/faunus-ater.nix +++ b/hosts/faunus-ater.nix @@ -242,20 +242,19 @@ in { # === Photoprism === services.photoprism = { enable = true; - url = "https://foto.home"; + url = "http://foto.home"; port = 2342; rootDir = "/data/dirty/photoprism"; environmentFile = config.sops.secrets."photoprism-env".path; }; - services.nginx.virtualHosts."foto.home" = { - forceSSL = true; - sslTrustedCertificate = pkgs.writeText "ca.crt" (builtins.readFile ../secrets/ca.crt); - sslCertificateKey = sopsPath "nginx-cert-key"; - sslCertificate = sopsPath "nginx-cert-crt"; + services.nginx.virtualHosts."foto.home" = mkVirtHost { locations."/" = { proxyPass = "http://localhost:${builtins.toString config.services.photoprism.port}"; proxyWebsockets = true; }; + extraConfig = '' + client_max_body_size 500M; + ''; }; # === Restic User Backup ===