Compare commits
3 commits
f7490e5bad
...
35b5d69f14
Author | SHA1 | Date | |
---|---|---|---|
Antoine Martin | 35b5d69f14 | ||
Antoine Martin | 39f85191b1 | ||
Antoine Martin | 2b8341ea9c |
|
@ -19,11 +19,9 @@ in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
services.fail2ban = {
|
services.fail2ban = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
bantime = "6h";
|
||||||
bantime-increment.enable = true;
|
bantime-increment.enable = true;
|
||||||
jails.DEFAULT = ''
|
jails.DEFAULT.settings.findtime = "6h";
|
||||||
bantime = 6h
|
|
||||||
findtime = 6h
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,6 +85,8 @@ in {
|
||||||
type = "postgres";
|
type = "postgres";
|
||||||
# user needs to be the same as gitea user
|
# user needs to be the same as gitea user
|
||||||
user = giteaUser;
|
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
|
# NOTE: no need to use postgresql.ensureDatabases because the gitea module
|
||||||
# takes care of this automatically
|
# takes care of this automatically
|
||||||
services.postgresqlBackup = {
|
services.postgresqlBackup = {
|
||||||
databases = ["gitea"];
|
databases = [config.services.gitea.database.name];
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx = {
|
services.nginx = {
|
||||||
|
|
|
@ -62,8 +62,6 @@ in {
|
||||||
services.nextcloud = {
|
services.nextcloud = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
enableBrokenCiphersForSSE = false;
|
|
||||||
|
|
||||||
hostName = "cloud.${domain}";
|
hostName = "cloud.${domain}";
|
||||||
https = true;
|
https = true;
|
||||||
package = pkgs.nextcloud26;
|
package = pkgs.nextcloud26;
|
||||||
|
|
Loading…
Reference in a new issue