mirror of
https://github.com/RGBCube/ncc
synced 2025-07-29 19:17:45 +00:00
Add fail2ban jails for more services
This commit is contained in:
parent
e57c3bfe16
commit
5d9c2c07fe
5 changed files with 19 additions and 10 deletions
|
@ -8,6 +8,11 @@ in serverSystemConfiguration {
|
|||
age.secrets."cube/password.grafana".owner = "grafana";
|
||||
age.secrets."cube/password.mail.grafana".owner = "grafana";
|
||||
|
||||
services.fail2ban.jails.grafana.settings = {
|
||||
filter = "grafana";
|
||||
maxretry = 3;
|
||||
};
|
||||
|
||||
systemd.services.grafana.requires = [ "postgresql.service" ];
|
||||
|
||||
services.grafana = enabled {
|
||||
|
|
|
@ -20,6 +20,18 @@ in serverSystemConfiguration {
|
|||
}];
|
||||
}];
|
||||
|
||||
services.fail2ban.jails = {
|
||||
dovecot.settings = {
|
||||
filter = "dovecot";
|
||||
maxretry = 3;
|
||||
};
|
||||
|
||||
postfix.settings = {
|
||||
filter = "postfix";
|
||||
maxretry = 3;
|
||||
};
|
||||
};
|
||||
|
||||
services.kresd.listenPlain = lib.mkForce [ "[::]:53" "0.0.0.0:53" ];
|
||||
services.redis.servers.rspamd.bind = "0.0.0.0";
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@ let
|
|||
fqdn = "cloud.${domain}";
|
||||
in serverSystemConfiguration {
|
||||
age.secrets."cube/password.nextcloud".owner = "nextcloud";
|
||||
age.secrets."cube/password.mail.nextcloud".owner = "nextcloud";
|
||||
|
||||
systemd.services.nextcloud-setup.requires = [ "postgresql.service" ];
|
||||
|
||||
|
@ -24,7 +23,6 @@ in serverSystemConfiguration {
|
|||
config.dbhost = "/run/postgresql";
|
||||
config.dbtype = "pgsql";
|
||||
|
||||
secretFile = config.age.secrets."cube/password.mail.nextcloud".path;
|
||||
extraOptions = {
|
||||
default_phone_region = "TR";
|
||||
|
||||
|
|
|
@ -1,5 +0,0 @@
|
|||
age-encryption.org/v1
|
||||
-> ssh-ed25519 +rZ0Tw Sum+2HU7J6lXA4gbBl+mYj2L+D4tqtjHGdMl2RHiNGY
|
||||
8Kw+f0Fzl0jhhkm6EuLqVQNGpyRjZL3xK9ldXugOMZs
|
||||
--- wGiZJTQeisiVaEClE23WnfnkHOf9tV56KbQks/2JrOs
|
||||
_Ӻͣ½´6íþŽÀŽ J©®/ÞdÔøÄÌ:cÍè<C38D> í{n)ÎM7Aõsî1ÕXö¯Qqx €Õ_«*]'€›´ÂÃèã
|
|
@ -11,10 +11,9 @@ rec {
|
|||
|
||||
"cube/password.acme.age".publicKeys = [ keys.cube ];
|
||||
|
||||
"cube/password.mail.grafana.age".publicKeys = [ keys.cube ];
|
||||
"cube/password.mail.nextcloud.age".publicKeys = [ keys.cube ];
|
||||
|
||||
"cube/password.grafana.age".publicKeys = [ keys.cube ];
|
||||
"cube/password.mail.grafana.age".publicKeys = [ keys.cube ];
|
||||
|
||||
"cube/password.nextcloud.age".publicKeys = [ keys.cube ];
|
||||
|
||||
"enka/password.hash.orhan.age".publicKeys = [ keys.rgbcube ];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue