feat: Added obs

This commit is contained in:
uttarayan21
2025-03-20 14:00:39 +05:30
parent d3a94c834a
commit 98643c040a
5 changed files with 32 additions and 16 deletions

View File

@@ -0,0 +1,5 @@
{...}: {
services = {
caddy.enable = true;
};
}

View File

@@ -6,8 +6,10 @@
./llama.nix
./minecraft.nix
./tailscale.nix
# ./polaris.nix
./caddy.nix
./fail2ban.nix
# ./polaris.nix
# ./seafile.nix
# ./syncthing.nix
# ./vscode.nix
@@ -22,19 +24,5 @@
nix-serve = {
enable = true;
};
fail2ban = {
enable = true;
bantime = "24h"; # Ban IPs for one day on the first ban
bantime-increment = {
enable = true; # Enable increment of bantime after each violation
# formula = "ban.Time * math.exp(float(ban.Count+1)*banFactor)/math.exp(1*banFactor)";
multipliers = "1 2 4 8 16 32 64";
maxtime = "168h"; # Do not ban for more than 1 week
overalljails = true; # Calculate the bantime based on all the violations
};
};
caddy = {
enable = true;
};
};
}

View File

@@ -0,0 +1,15 @@
{...}: {
services = {
fail2ban = {
enable = true;
bantime = "24h"; # Ban IPs for one day on the first ban
bantime-increment = {
enable = true; # Enable increment of bantime after each violation
# formula = "ban.Time * math.exp(float(ban.Count+1)*banFactor)/math.exp(1*banFactor)";
multipliers = "1 2 4 8 16 32 64";
maxtime = "168h"; # Do not ban for more than 1 week
overalljails = true; # Calculate the bantime based on all the violations
};
};
};
}