Proxy config

This commit is contained in:
2026-07-27 02:47:00 -07:00
parent c0c3a4c405
commit f423764645
3 changed files with 13 additions and 6 deletions
+2
View File
@@ -1,5 +1,6 @@
import logging
from pathlib import Path
from contextvars import ContextVar
# --- Project Root ---
# Get the directory where config.py is located
@@ -8,6 +9,7 @@ ROOT_DIR = Path(__file__).parent.resolve()
# --- Server & Logs ---
HOST = "127.0.0.1"
PORT = 8000
request_host = ContextVar("request_host", default=f"{HOST}:{PORT}")
LOG_LEVEL = "WARNING" # Options: "DEBUG", "INFO", "WARNING", "ERROR"
LOG_FILE = str(ROOT_DIR / "debug.log")
USER_AGENT = "Mozilla/5.0 (X11; Linux x86_64; rv:151.0) Gecko/20100101 Firefox/151.0" # Stealth User-Agent to bypass Wikipedia's bot detection