security: add fail2ban
This commit is contained in:
parent
8de4592eb5
commit
20ee47caa2
4 changed files with 71 additions and 1 deletions
|
|
@ -18,6 +18,7 @@ in
|
|||
intel-bus-id = "PCI:0:2:0";
|
||||
nvidia-bus-id = "PCI:1:0:0";
|
||||
})
|
||||
./security.nix
|
||||
./sops-conf.nix
|
||||
./boot.nix
|
||||
./hardware-configuration.nix
|
||||
|
|
@ -58,6 +59,7 @@ in
|
|||
dataBackupPath = "/mnt/backup_dn";
|
||||
dbBackupPath = "/mnt/backup_dn";
|
||||
adminpassFile = config.sops.secrets."nextcloud/adminPassword".path;
|
||||
trusted = [ "nextcloud.daccc.info" ];
|
||||
})
|
||||
(import ../../modules/vaultwarden.nix {
|
||||
domain = "bitwarden.net.dn";
|
||||
|
|
|
|||
13
system/dev/dn-server/security.nix
Normal file
13
system/dev/dn-server/security.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
...
|
||||
}:
|
||||
{
|
||||
imports = [
|
||||
(import ../../modules/fail2ban.nix {
|
||||
extraAllowList = [
|
||||
"10.0.0.0/24"
|
||||
"122.117.215.55"
|
||||
];
|
||||
})
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue