Mojo-Maniac/Cerberus-Backend
0
1# =====================================================2# Cerberus Backend Configuration3# =====================================================4# Copy this file to .env and update with your values5 6# n8n Webhook URL - Your AI vulnerability analysis endpoint7N8N_WEBHOOK_URL=https://your-n8n-instance/webhook/scan8 9# Request timeout in seconds10N8N_TIMEOUT_SECONDS=12011 12# Backend server port (5000 for local, 7860 for HF Spaces)13PORT=500014 15# CORS allowed origins (comma-separated)16ALLOWED_ORIGINS=http://localhost:3000,http://localhost:517317 18# Max characters per n8n call. Files larger than this are split into chunks19# to stay within reverse-proxy timeout limits (e.g. nginx default 60s).20MAX_CHUNK_CHARS=150021 22# Lines of already-corrected code prepended to each chunk as context,23# so the AI understands mid-file continuations.24OVERLAP_LINES=525 26# =====================================================27# Hugging Face Spaces Deployment28# =====================================================29# If you deployed to HF Spaces (https://huggingface.co/spaces/YOUR-USERNAME/Cerberus),30# configure these environment variables in your Space settings instead of this file:31#32# Required secrets:33# - N8N_WEBHOOK_URL (your n8n webhook)34# - N8N_TIMEOUT_SECONDS (120)35# - PORT (7860)36#37# Then configure your VS Code extension:38# Settings > Cerberus: Backend Url = https://YOUR-USERNAME-cerberus.hf.space39 40 