18 lines
377 B
Nix
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}";
|
|
};
|
|
};
|
|
}
|