rice/hosts/ami/website.nix

25 lines
537 B
Nix
Raw Normal View History

2024-01-25 15:54:05 +00:00
{website, ...}: {
networking.firewall.allowedTCPPorts = [80 443];
services.nginx = {
enable = true;
recommendedGzipSettings = true;
recommendedOptimisation = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
2024-05-08 16:39:51 +00:00
virtualHosts."name.buffet.sh" = {
useACMEHost = "buffet.sh";
forceSSL = true;
locations."/".proxyPass = "http://localhost:18899";
};
2024-01-25 15:54:05 +00:00
virtualHosts."buffet.sh" = {
enableACME = true;
forceSSL = true;
root = "${website}";
};
};
}