diff --git a/instances/baldur/configuration.nix b/instances/baldur/configuration.nix index 0a375a0..866a21a 100644 --- a/instances/baldur/configuration.nix +++ b/instances/baldur/configuration.nix @@ -51,18 +51,22 @@ enable = true; bantime-increment.enable = true; jails = { - "nginx-botsearch" = '' - filter = nginx-botsearch - action = nftables-multiport[name=HTTP, port="http,https"] - logpath = /var/log/nginx/error.log* - backend = auto - ''; - "nginx-http-auth" = '' - filter = nginx-http-auth - action = nftables-multiport[name=HTTP, port="http,https"] - logpath = /var/log/nginx/error.log* - backend = auto - ''; + "nginx-botsearch" = { + settings = { + filter = "nginx-botsearch"; + action = ''nftables-multiport[name=HTTP, port="http,https"]''; + logpath = "/var/log/nginx/error.log*"; + backend = "auto"; + }; + }; + "nginx-http-auth" = { + settings = { + filter = "nginx-http-auth"; + action = ''nftables-multiport[name=HTTP, port="http,https"]''; + logpath = "/var/log/nginx/error.log*"; + backend = "auto"; + }; + }; }; }; nginx = {