adonis/config/http/default.nix
toufic ar 03464d2756
All checks were successful
/ deploy (push) Successful in 31s
increase snowflake capacity, add tor subdomain
2026-02-05 20:52:49 +02:00

35 lines
774 B
Nix

{config, ...}: let
customDomain = config.customOps.domain.fqdn;
in {
imports = [
./captiveportal.nix
./tor-snowflake.nix
];
networking.firewall.allowedTCPPorts = [80 443];
services.nginx = {
enable = true;
recommendedTlsSettings = true;
recommendedOptimisation = true;
recommendedGzipSettings = true;
recommendedUwsgiSettings = true;
recommendedProxySettings = true;
recommendedBrotliSettings = true;
sslCiphers = "AES256+EECDH:AES256+EDH:!aNULL";
virtualHosts.${customDomain} = {
default = true;
root = "/var/www/${customDomain}";
forceSSL = true;
enableACME = true;
};
};
security.acme = {
acceptTerms = true;
defaults.email = "security@${config.mailserver.fqdn}";
};
}