feat(servers): fix ssh not working with forgejo.

This commit is contained in:
CronyAkatsuki 2025-05-10 09:30:41 +02:00
parent 850f15885a
commit 606f04493b
2 changed files with 13 additions and 1 deletions

View file

@ -19,5 +19,10 @@
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBJLduAXHWJiglmfRfkBGKffzVWkJP6porxIzw6+Zz3W crony@cronyakatsuki.xyz"
];
services.fail2ban.enable = true;
services.fail2ban = {
enable = true;
ignoreIP = [
"65.21.241.194"
];
};
}

View file

@ -31,4 +31,11 @@
entrypoints = "websecure";
};
};
services.openssh = {
authorizedKeysFiles = ["/var/lib/%u/.ssh/authorized_keys"];
settings = {
AllowUsers = ["forgejo"];
};
};
}