- bridge.py RemoteTransport: HTTP 클라이언트, API Key auth, Gateway API 매핑 - collector.py CollectorBridge: 3개 async loop (pending 전달, response 폴링, commands 폴링) - main.py: BOT_MODE=remote → CollectorBridge 실행 (Discord bot 없이) - config.py: GATEWAY_API_KEY 설정 - .env.example: 모든 설정 항목 업데이트
29 lines
851 B
Plaintext
29 lines
851 B
Plaintext
# Discord Bot Token (필수)
|
|
DISCORD_TOKEN=your_discord_bot_token_here
|
|
|
|
# Discord Guild (서버) ID (필수) — 봇이 채널을 생성할 서버
|
|
DISCORD_GUILD_ID=
|
|
|
|
# Bridge 디렉토리 (기본값: ~/.gemini/antigravity/bridge)
|
|
# 보통 수정 불필요 — Extension과 동일 경로 사용
|
|
BRIDGE_PATH=
|
|
|
|
# Antigravity Brain Path (Watcher용)
|
|
BRAIN_PATH=
|
|
|
|
# 세션 활성 판단: 마지막 파일 변경으로부터 이 시간(초) 이내면 활성
|
|
ACTIVE_TIMEOUT_SECONDS=300
|
|
|
|
# Watcher Settings
|
|
DEBOUNCE_SECONDS=2
|
|
|
|
# Bot mode: 'local' (default, file-based) or 'gateway' (서버 Docker)
|
|
BOT_MODE=local
|
|
# Remote bridge URL (only used when BOT_MODE=remote)
|
|
REMOTE_BRIDGE_URL=
|
|
|
|
# Gateway API Key (보안)
|
|
# 서버와 Collector에 동일한 키를 설정하세요
|
|
# 생성: python -c "import secrets; print(secrets.token_urlsafe(32))"
|
|
GATEWAY_API_KEY=
|