mirror of
https://github.com/fabriziosalmi/patterns.git
synced 2025-12-17 17:55:48 +00:00
Update import_nginx_waf.py
This commit is contained in:
parent
cd98a03cff
commit
6e5ff5b02c
@ -11,7 +11,7 @@ logging.basicConfig(
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Constants (configurable via environment variables)
|
# Constants (configurable via environment variables)
|
||||||
WAF_DIR = Path(os.getenv("WAF_DIR", "waf_patterns/nginx")) # Source directory for WAF files
|
WAF_DIR = Path(os.getenv("WAF_DIR", "/tmp/waf_patterns/nginx")) # Source directory for WAF files
|
||||||
NGINX_WAF_DIR = Path(os.getenv("NGINX_WAF_DIR", "/etc/nginx/waf/")) # Target directory
|
NGINX_WAF_DIR = Path(os.getenv("NGINX_WAF_DIR", "/etc/nginx/waf/")) # Target directory
|
||||||
NGINX_CONF = Path(os.getenv("NGINX_CONF", "/etc/nginx/nginx.conf")) # Nginx config file
|
NGINX_CONF = Path(os.getenv("NGINX_CONF", "/etc/nginx/nginx.conf")) # Nginx config file
|
||||||
INCLUDE_STATEMENT = "include /etc/nginx/waf/*.conf;" # Include directive
|
INCLUDE_STATEMENT = "include /etc/nginx/waf/*.conf;" # Include directive
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user