mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
feat: add fail2ban and scrutiny
This commit is contained in:
parent
4e8afa2dfc
commit
d45f6a9359
6 changed files with 107 additions and 6 deletions
|
|
@ -13,6 +13,19 @@ lib.mkIf config.fireproof.homelab.enable {
|
|||
recommendedProxySettings = true;
|
||||
recommendedGzipSettings = true;
|
||||
recommendedBrotliSettings = true;
|
||||
|
||||
virtualHosts."status.localhost" = {
|
||||
listen = [{ addr = "127.0.0.1"; port = 8070; }];
|
||||
locations."/metrics" = {
|
||||
extraConfig = ''
|
||||
stub_status;
|
||||
access_log off;
|
||||
allow 127.0.0.1;
|
||||
allow ::1;
|
||||
deny all;
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
security.acme = {
|
||||
acceptTerms = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue