23 lines
502 B
Nix
23 lines
502 B
Nix
{...}: {
|
|
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;
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
}
|