2021-10-17 11:00:52 +02:00
|
|
|
{config, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
|
2022-09-08 17:42:54 +02:00
|
|
|
security.acme = {
|
|
|
|
acceptTerms = true;
|
|
|
|
defaults.email = "danio@pvv.ntnu.no";
|
|
|
|
};
|
2021-10-17 11:00:52 +02:00
|
|
|
|
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
2022-12-07 10:14:39 +01:00
|
|
|
|
|
|
|
defaultListenAddresses = [ "129.241.210.169" "127.0.0.1" "[2001:700:300:1900::169]" ];
|
|
|
|
|
2021-10-17 11:00:52 +02:00
|
|
|
recommendedProxySettings = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedOptimisation = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
|
|
|
}
|