Some checks failed
/ deploy (push) Failing after 8s
- network: add tor relay + snowflake proxy - email: regex alias for admin - search: enable some additional engines
32 lines
742 B
Nix
32 lines
742 B
Nix
{config, ...}: let
|
|
customDomain = config.customOps.domain.fqdn;
|
|
in {
|
|
imports = [./captiveportal.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}";
|
|
};
|
|
}
|