jtl-wafi-agent.py aktualisiert
This commit is contained in:
@@ -50,16 +50,16 @@ LOG_FILE = "/var/log/jtl-wafi.log"
|
|||||||
# PFADE - SHOPS
|
# PFADE - SHOPS
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
VHOSTS_DIR = "/var/www/vhosts"
|
VHOSTS_DIR = "/var/www/vhosts"
|
||||||
ACTIVE_SHOPS_FILE = "/var/lib/geoip/active_shops.json"
|
ACTIVE_SHOPS_FILE = "/var/lib/jtl-wafi/active_shops.json"
|
||||||
|
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
# SHOP-DATEIEN
|
# SHOP-DATEIEN
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
BACKUP_SUFFIX = ".geoip_backup"
|
BACKUP_SUFFIX = ".jtl-wafi_backup"
|
||||||
BLOCKING_FILE = "geoip_blocking.php"
|
BLOCKING_FILE = "jtl-wafi.php"
|
||||||
CACHE_FILE = "geoip_ip_ranges.cache"
|
CACHE_FILE = "jtl-wafi_ip_ranges.cache"
|
||||||
SHOP_LOG_FILE = "geoip_blocked.log"
|
SHOP_LOG_FILE = "jtl-wafi_blocked.log"
|
||||||
RATELIMIT_DIR = "geoip_ratelimit"
|
RATELIMIT_DIR = "jtl-wafi_ratelimit"
|
||||||
|
|
||||||
# =============================================================================
|
# =============================================================================
|
||||||
# WEBSOCKET
|
# WEBSOCKET
|
||||||
@@ -1229,7 +1229,7 @@ if (count($ranges) >= {min_expected}) {{
|
|||||||
}}
|
}}
|
||||||
'''
|
'''
|
||||||
|
|
||||||
temp_php = os.path.join(httpdocs_path, '_geoip_cache_gen.php')
|
temp_php = os.path.join(httpdocs_path, '_jtl-wafi_cache_gen.php')
|
||||||
try:
|
try:
|
||||||
with open(temp_php, 'w') as f:
|
with open(temp_php, 'w') as f:
|
||||||
f.write(php_script)
|
f.write(php_script)
|
||||||
|
|||||||
Reference in New Issue
Block a user