rice/hosts/ami/website.nix
2024-05-20 12:06:16 +02:00

24 lines
537 B
Nix

{website, ...}: {
networking.firewall.allowedTCPPorts = [80 443];
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts."name.buffet.sh" = {
useACMEHost = "buffet.sh";
forceSSL = true;
locations."/".proxyPass = "http://localhost:18899";
};
virtualHosts."buffet.sh" = {
enableACME = true;
forceSSL = true;
root = "${website}";
};
};
}