nix-config/configs/nixos/nginx.nix
Gabe Venberg 511b8332ed lockfile update and hetzner radicale server.
Hetzner server will eventually have other things on it.
2024-07-27 19:11:57 -05:00

24 lines
487 B
Nix

{
inputs,
config,
pkgs,
lib,
...
}: {
services.nginx = {
enable = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
commonHttpConfig = ''
add_header X-Clacks-Overhead "GNU Terry Pratchett";
add_header X-Clacks-Overhead "GNU Bram Moolenaar";
'';
# other Nginx options
};
security.acme = {
acceptTerms = true;
defaults.email = "gabevenberg@gmail.com";
};
networking.firewall.allowedTCPPorts = [443 80];
}