From f961f63c2381fe8138dddc5bb4d2a90347a5e9f1 Mon Sep 17 00:00:00 2001 From: sajenim Date: Mon, 1 Apr 2024 10:03:27 +0800 Subject: [PATCH] blacklist russia --- nixos/viridian/services/traefik/middlewares.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/nixos/viridian/services/traefik/middlewares.nix b/nixos/viridian/services/traefik/middlewares.nix index d1337d8..c9c767e 100644 --- a/nixos/viridian/services/traefik/middlewares.nix +++ b/nixos/viridian/services/traefik/middlewares.nix @@ -28,15 +28,12 @@ apiTimeoutMs = "750"; # Max size of least recently used cache cacheSize = "25"; - # List of countries to allow access + # List of countries to block access countries = [ - "AU" # Australia - "NZ" # New Zealand - "GB" # United Kingdom of Great Britian and Northern Ireland (the) - "US" # United States of America (the) + "RU" # Russian Federation (the) ]; # Inverts filter logic - blackListMode = "false"; + blackListMode = "true"; # Unknown Countries (IPs with no country association) allowUnknownCountries = "false"; unknownCountryApiResponse = "nil";