rice/hosts/ami/website.nix
buffet d6eb3aa28b
All checks were successful
/ check (pull_request) Successful in 2m23s
feat: use hetzner dns to get wildcard cert from lets encrypt
2024-05-22 08:38:12 +02:00

18 lines
385 B
Nix

{website, ...}: {
networking.firewall.allowedTCPPorts = [80 443];
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."buffet.sh" = {
useACMEHost = "buffet.sh";
forceSSL = true;
root = "${website}";
};
};
}