nixfiles/hosts/hetzner-arm/profiles/photoprism.nix

23 lines
502 B
Nix
Raw Normal View History

2024-12-16 13:49:39 +00:00
{...}: {
services.photoprism = {
enable = true;
};
services.nginx.virtualHosts."vault.owo.monster" = {
forceSSL = true;
enableACME = true;
locations = {
"/" = {
proxyPass = "http://127.0.0.1:8200";
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;
'';
};
};
};
}