Merge branch 'main' into ssh-server

This commit is contained in:
Unclecode
2024-12-12 12:25:26 +00:00
35 changed files with 7908 additions and 1722 deletions

View File

@@ -342,7 +342,7 @@ app.add_middleware(
# API token security
security = HTTPBearer()
CRAWL4AI_API_TOKEN = os.getenv("CRAWL4AI_API_TOKEN") or "test_api_code"
CRAWL4AI_API_TOKEN = os.getenv("CRAWL4AI_API_TOKEN")
async def verify_token(credentials: HTTPAuthorizationCredentials = Security(security)):
if not CRAWL4AI_API_TOKEN: