rice/hosts/ami/website.nix
buffet 3a81cc0d84
All checks were successful
/ check (pull_request) Successful in 2m51s
refactor: move repeated nginx snippets into one file
2024-06-05 11:31:12 +02:00

11 lines
220 B
Nix

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