[host/faunus-ater] Setup foto.home / Fix it
This commit is contained in:
parent
b7d436b735
commit
3bc4efe2d9
|
@ -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 ===
|
||||
|
|
Loading…
Reference in a new issue