2024-04-19 20:44:42 +00:00
|
|
|
{website, ...}: {
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
|
|
|
|
virtualHosts."404.buffet.sh" = {
|
|
|
|
default = true;
|
2024-04-20 16:41:52 +00:00
|
|
|
useACMEHost = "buffet.sh";
|
2024-04-19 20:44:42 +00:00
|
|
|
forceSSL = true;
|
|
|
|
root = "${website}/404.html";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|