rice/hosts/ami/website.nix
buffet 2def5b10eb
All checks were successful
/ check (push) Successful in 2m44s
refactor: move repeated nginx snippets into one file
2024-06-05 09:40:42 +00:00

11 lines
220 B
Nix

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