2021-11-13 02:51:54 +01:00
|
|
|
{ ... }:
|
|
|
|
{
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
|
|
|
|
# # Only allow PFS-enabled ciphers with AES256
|
|
|
|
# sslCiphers = "AES256+EECDH:AES256+EDH:!aNULL";
|
|
|
|
|
|
|
|
virtualHosts = {
|
|
|
|
"home.beta.rz.ens.wtf" = {
|
|
|
|
serverAliases = [ "beta.rz.ens.wtf" ];
|
2021-11-14 23:57:19 +01:00
|
|
|
default = true;
|
2021-11-13 02:51:54 +01:00
|
|
|
forceSSL = true;
|
|
|
|
enableACME = true;
|
|
|
|
root = "/var/public-cof/home";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
|
|
|
}
|