dots/modules/templates/web-feature.nix
2026-01-15 00:54:19 +11:00

30 lines
627 B
Nix

let
port = 0000;
certloc = "/var/lib/acme/fi33.buzz";
in
{
services = {
feature = {
enable = true;
};
# borgmatic.settings = {
# source_directories = [ ];
# postgresql_databases = [
# {
# name = "feature";
# hostname = "localhost";
# username = "root";
# password = "{credential systemd borgmatic-pg}";
# }
# ];
# };
caddy.virtualHosts."feature.fi33.buzz".extraConfig = ''
reverse_proxy localhost:${toString port}
tls ${certloc}/cert.pem ${certloc}/key.pem {
protocols tls1.3
}
'';
};
}