nix-infra/config/hosts/public-web-static/nginx.nix
2026-02-27 21:04:43 +01:00

18 lines
388 B
Nix

{ ... }:
{
services.nginx = {
enable = true;
appendHttpConfig = ''
access_log off;
# load the DI-Day redirect map from the webroot
map $request_uri $did_redirect_target {
include /var/www/diday.org/nginx-redirects.conf;
}
'';
};
networking.firewall.allowedTCPPorts = [ 8443 31820 ];
networking.firewall.allowedUDPPorts = [ 8443 ];
}