forgejo migration

This commit is contained in:
Grimmauld 2024-12-01 12:37:18 +01:00
parent 19f05aec9f
commit dd90defb6a
4 changed files with 14 additions and 3 deletions

View file

@ -13,7 +13,7 @@ in
./nextcloud.nix
./prometheus.nix
# ./mjolnir.nix
# ./fail2ban.nix
./fail2ban.nix
./email.nix
# ./discord-matrix-bridge.nix
./mastodon.nix

View file

@ -15,7 +15,7 @@
bantime-increment = {
enable = true; # Enable increment of bantime after each violation
multipliers = "1 2 4 8 16 32 64 128 256";
maxtime = "168h"; # Do not ban for more than 1 week
maxtime = "48h"; # Do not ban for more than 1 week
overalljails = true; # Calculate the bantime based on all the violations
};
};

View file

@ -4,8 +4,18 @@ let
inherit (config.serverConfig) ports vhosts;
in
{
services.gitea = {
services.forgejo = {
enable = true;
package = pkgs.forgejo;
database = {
user = "gitea";
path = "${config.services.forgejo.stateDir}/data/gitea.db";
name = "gitea";
};
dump.enable = true;
settings = {
service.DISABLE_REGISTRATION = true;
server = {

View file

@ -9,6 +9,7 @@
networking.hostName = "grimmauld-nixos-server";
networking.domain = "grimmauld.de";
services.openssh.enable = true;
services.opensnitch.enable = lib.mkForce false;
system.stateVersion = "23.11";
networking.networkmanager.enable = lib.mkForce false;
boot.kernelPackages = pkgs.linuxPackages_latest;