18 lines
361 B
Nix
18 lines
361 B
Nix
|
{website, ...}: {
|
||
|
services.nginx = {
|
||
|
enable = true;
|
||
|
|
||
|
recommendedGzipSettings = true;
|
||
|
recommendedOptimisation = true;
|
||
|
recommendedProxySettings = true;
|
||
|
recommendedTlsSettings = true;
|
||
|
|
||
|
virtualHosts."404.buffet.sh" = {
|
||
|
default = true;
|
||
|
enableACME = true;
|
||
|
forceSSL = true;
|
||
|
root = "${website}/404.html";
|
||
|
};
|
||
|
};
|
||
|
}
|