Compare commits

..

3 commits

3 changed files with 5 additions and 7 deletions

View file

@ -19,11 +19,9 @@ in {
config = mkIf cfg.enable {
services.fail2ban = {
enable = true;
bantime = "6h";
bantime-increment.enable = true;
jails.DEFAULT = ''
bantime = 6h
findtime = 6h
'';
jails.DEFAULT.settings.findtime = "6h";
};
};
}

View file

@ -85,6 +85,8 @@ in {
type = "postgres";
# user needs to be the same as gitea user
user = giteaUser;
# FIXME: change database name to match 23.11 postgres changes around ensureDatabase
createDatabase = false;
};
};
@ -102,7 +104,7 @@ in {
# NOTE: no need to use postgresql.ensureDatabases because the gitea module
# takes care of this automatically
services.postgresqlBackup = {
databases = ["gitea"];
databases = [config.services.gitea.database.name];
};
services.nginx = {

View file

@ -62,8 +62,6 @@ in {
services.nextcloud = {
enable = true;
enableBrokenCiphersForSSE = false;
hostName = "cloud.${domain}";
https = true;
package = pkgs.nextcloud26;