rice/hosts/ami/website.nix
buffet e4f8faf9d0 feat: get proper 404
This is admittedly super hacky, because it uses an unused subdomain, invalid
certs, and actually just directs somewhere that doesn't exist, but it kinda
works, and going on a weird subdomain at least doesn't redirect to bitwarden.
2024-05-20 12:06:16 +02:00

18 lines
377 B
Nix

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