|
| 1 | +# ============================================================ |
| 2 | +# GIS Data Agent v4.0 — Environment Configuration Template |
| 3 | +# ============================================================ |
| 4 | +# Copy this file to .env and fill in your values: |
| 5 | +# cp .env.example .env |
| 6 | +# |
| 7 | +# IMPORTANT: |
| 8 | +# - Do NOT use 'export' prefix (python-dotenv handles bare KEY=VALUE) |
| 9 | +# - Use forward slashes in Windows paths (D:/path/to/file) |
| 10 | +# - Do NOT commit .env to version control |
| 11 | +# ============================================================ |
| 12 | + |
| 13 | +# ========================== |
| 14 | +# REQUIRED: Database |
| 15 | +# ========================== |
| 16 | +POSTGRES_HOST=localhost |
| 17 | +POSTGRES_PORT=5432 |
| 18 | +POSTGRES_DATABASE=gis_agent |
| 19 | +POSTGRES_USER=postgres |
| 20 | +POSTGRES_PASSWORD=your_password |
| 21 | + |
| 22 | +# ========================== |
| 23 | +# REQUIRED: AI Model |
| 24 | +# ========================== |
| 25 | +# Option A: Vertex AI (recommended for production) |
| 26 | +GOOGLE_GENAI_USE_VERTEXAI=TRUE |
| 27 | +GOOGLE_CLOUD_PROJECT=your-gcp-project-id |
| 28 | +GOOGLE_CLOUD_LOCATION=us-central1 |
| 29 | + |
| 30 | +# Option B: Google AI Studio API Key (simpler setup) |
| 31 | +# GOOGLE_GENAI_USE_VERTEXAI=0 |
| 32 | +# GOOGLE_API_KEY=AIzaSy...your_api_key |
| 33 | + |
| 34 | +# ========================== |
| 35 | +# REQUIRED: Authentication |
| 36 | +# ========================== |
| 37 | +# Generate with: chainlit create-secret |
| 38 | +CHAINLIT_AUTH_SECRET=your_random_secret_key_here |
| 39 | + |
| 40 | +# ========================== |
| 41 | +# OPTIONAL: OAuth2 Login |
| 42 | +# ========================== |
| 43 | +# Uncomment to enable "Sign in with Google" button |
| 44 | +# OAUTH_GOOGLE_CLIENT_ID=your_google_client_id |
| 45 | +# OAUTH_GOOGLE_CLIENT_SECRET=your_google_client_secret |
| 46 | + |
| 47 | +# ========================== |
| 48 | +# OPTIONAL: Agent Behavior |
| 49 | +# ========================== |
| 50 | +# Dynamic planner uses transfer_to_agent; false = fixed SequentialAgent pipelines |
| 51 | +DYNAMIC_PLANNER=true |
| 52 | + |
| 53 | +# ========================== |
| 54 | +# OPTIONAL: Map Services |
| 55 | +# ========================== |
| 56 | +# Gaode Maps (高德) — geocoding & reverse geocoding |
| 57 | +# GAODE_API_KEY=your_gaode_api_key |
| 58 | + |
| 59 | +# Tianditu (天地图) — basemap tiles (Vec + Img) |
| 60 | +# TIANDITU_TOKEN=your_tianditu_token |
| 61 | + |
| 62 | +# ========================== |
| 63 | +# OPTIONAL: Cloud Storage |
| 64 | +# ========================== |
| 65 | +# Huawei Cloud OBS (S3-compatible) |
| 66 | +# HUAWEI_OBS_AK=your_access_key |
| 67 | +# HUAWEI_OBS_SK=your_secret_key |
| 68 | +# HUAWEI_OBS_SERVER=https://obs.cn-north-4.myhuaweicloud.com |
| 69 | +# HUAWEI_OBS_BUCKET=your_bucket_name |
| 70 | + |
| 71 | +# AWS S3 |
| 72 | +# AWS_ACCESS_KEY_ID=your_access_key |
| 73 | +# AWS_SECRET_ACCESS_KEY=your_secret_key |
| 74 | +# AWS_REGION=us-east-1 |
| 75 | +# AWS_S3_BUCKET=your_bucket_name |
| 76 | + |
| 77 | +# Google Cloud Storage |
| 78 | +# GCS_BUCKET=your_bucket_name |
| 79 | + |
| 80 | +# ========================== |
| 81 | +# OPTIONAL: Enterprise Bots |
| 82 | +# ========================== |
| 83 | +# WeChat Work (企业微信) |
| 84 | +# WECOM_CORP_ID=your_corp_id |
| 85 | +# WECOM_APP_SECRET=your_app_secret |
| 86 | +# WECOM_TOKEN=your_callback_token |
| 87 | +# WECOM_ENCODING_AES_KEY=your_aes_key |
| 88 | +# WECOM_AGENT_ID=1000002 |
| 89 | +# WECOM_SHARE_BASE_URL=https://your-domain.com |
| 90 | + |
| 91 | +# DingTalk (钉钉) |
| 92 | +# DINGTALK_APP_KEY=your_app_key |
| 93 | +# DINGTALK_APP_SECRET=your_app_secret |
| 94 | +# DINGTALK_ROBOT_CODE=your_robot_code |
| 95 | +# DINGTALK_SHARE_BASE_URL=https://your-domain.com |
| 96 | + |
| 97 | +# Feishu / Lark (飞书) |
| 98 | +# FEISHU_APP_ID=your_app_id |
| 99 | +# FEISHU_APP_SECRET=your_app_secret |
| 100 | +# FEISHU_VERIFICATION_TOKEN=your_verification_token |
| 101 | +# FEISHU_ENCRYPT_KEY=your_encrypt_key |
| 102 | +# FEISHU_SHARE_BASE_URL=https://your-domain.com |
| 103 | + |
| 104 | +# ========================== |
| 105 | +# OPTIONAL: Redis (Real-time Streams) |
| 106 | +# ========================== |
| 107 | +# Falls back to in-memory if not configured |
| 108 | +# REDIS_URL=redis://localhost:6379/0 |
| 109 | + |
| 110 | +# ========================== |
| 111 | +# OPTIONAL: Observability |
| 112 | +# ========================== |
| 113 | +# LOG_LEVEL=INFO |
| 114 | +# LOG_FORMAT=text |
| 115 | +# AUDIT_LOG_RETENTION_DAYS=90 |
| 116 | + |
| 117 | +# ========================== |
| 118 | +# OPTIONAL: Usage Limits |
| 119 | +# ========================== |
| 120 | +# DAILY_ANALYSIS_LIMIT=20 |
| 121 | +# MONTHLY_TOKEN_LIMIT=0 |
| 122 | + |
| 123 | +# ========================== |
| 124 | +# OPTIONAL: Extensions |
| 125 | +# ========================== |
| 126 | +# ArcPy Integration (use forward slashes!) |
| 127 | +# ARCPY_PYTHON_EXE=D:/path/to/arcgis/python.exe |
| 128 | + |
| 129 | +# MCP Toolbox |
| 130 | +# MCP_TOOLBOX_URL=http://localhost:8080 |
| 131 | + |
| 132 | +# Google Earth Engine |
| 133 | +# GEE_SERVICE_ACCOUNT_KEY=path/to/key.json |
0 commit comments