2023-08-27 15:48:42 +02:00
|
|
|
{ lib, config, ... }:
|
|
|
|
let
|
|
|
|
v = (builtins.attrNames config.services.nginx.virtualHosts);
|
|
|
|
in
|
2023-01-24 11:58:36 +01:00
|
|
|
{
|
2023-01-24 12:15:51 +01:00
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
2023-05-05 23:43:40 +02:00
|
|
|
services.nginx = {
|
|
|
|
enable = true;
|
|
|
|
recommendedTlsSettings = true;
|
|
|
|
recommendedProxySettings = true;
|
|
|
|
recommendedGzipSettings = true;
|
|
|
|
recommendedOptimisation = true;
|
2023-08-27 15:48:42 +02:00
|
|
|
# virtualHosts = lib.genAttrs v (name: { extraConfig = " lohustuff goes ith ${name}"; });
|
2023-05-05 23:43:40 +02:00
|
|
|
};
|
2023-01-24 11:58:36 +01:00
|
|
|
security.acme = {
|
|
|
|
acceptTerms = true;
|
|
|
|
defaults = {
|
2023-09-19 13:47:08 +02:00
|
|
|
email = "rouven@${config.networking.domain}";
|
2023-01-24 11:58:36 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|