-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
151 lines (127 loc) · 4.82 KB
/
Copy path.env.example
File metadata and controls
151 lines (127 loc) · 4.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
# SPDX-License-Identifier: MIT
# Copyright (c) 2025 UIP Team. All rights reserved.
#
# UIP - Urban Intelligence Platform
# https://github.com/UIP-Urban-Intelligence-Platform/UIP-Urban_Intelligence_Platform
#
# Module: .env.example
# Author: UIP Team
# Version: 1.0.0
#
# Description: Environment Configuration Template
# Copy this file to .env and fill in your values
# DO NOT commit .env to version control!
# ==================== Python Configuration ====================
PYTHONPATH=.
# ==================== Application Settings ====================
ENVIRONMENT=development # development, staging, production
LOG_LEVEL=INFO # DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_FORMAT=%(asctime)s - %(name)s - %(levelname)s - %(message)s
# ==================== Main Application (main.py) ====================
# Orchestrator scheduling configuration
ORCHESTRATOR_INTERVAL=60 # Interval in minutes between orchestrator runs (default: 60)
WORKFLOW_CONFIG=config/workflow.yaml # Path to workflow configuration file
RUN_ORCHESTRATOR_NOW=false # Run orchestrator immediately on startup (true/false)
# Citizen Ingestion API configuration
CITIZEN_API_PORT=8001 # API server port (default: 8001)
# ==================== Data Directories ====================
DATA_DIR=data
CONFIG_DIR=config
LOGS_DIR=logs
ASSETS_DIR=assets
# ==================== Stellio Context Broker ====================
STELLIO_URL=http://localhost:8080
STELLIO_API_KEY=
STELLIO_TENANT=
# ==================== Neo4j Graph Database ====================
NEO4J_URL=bolt://localhost:7687
NEO4J_HOST=localhost
NEO4J_PORT=7687
NEO4J_WEB_URL=http://localhost:7474
NEO4J_USER=neo4j
NEO4J_PASSWORD=test12345
NEO4J_DATABASE=neo4j
# ==================== Kafka Message Queue ====================
KAFKA_BOOTSTRAP_SERVERS=localhost:9092
KAFKA_HOST=localhost
KAFKA_PORT=9092
KAFKA_TOPIC=cim.entity._CatchAll
KAFKA_TOPIC_PREFIX=cim.entity
KAFKA_GROUP_ID=uip-urban-intelligence-platform
# ==================== Apache Jena Fuseki ====================
FUSEKI_URL=http://localhost:3030
FUSEKI_DATASET=traffic
FUSEKI_USER=admin
FUSEKI_PASSWORD=test_admin
# ==================== YOLOX Configuration ====================
YOLOX_WEIGHTS=assets/models/yolox_x.pth
YOLOX_DEVICE=cpu # cpu or cuda
YOLOX_CONFIDENCE=0.25
YOLOX_MAX_VEHICLES=15
# ==================== DETR Accident Detection ====================
DETR_MODEL=hilmantm/detr-traffic-accident-detection
DETR_DEVICE=cpu # cpu or cuda
DETR_CONFIDENCE=0.5
# ==================== PostgreSQL Database ====================
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_DATABASE=stellio_search
POSTGRES_USER=stellio
POSTGRES_PASSWORD=stellio_test
# ==================== Redis Cache ====================
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_PASSWORD=
REDIS_URL=redis://localhost:6379
# ==================== MongoDB ====================
MONGODB_HOST=localhost
MONGODB_PORT=27017
MONGODB_USER=admin
MONGODB_PASSWORD=mongodb_test_pass
# ==================== Alert & Notification Services ====================
ALERT_WEBHOOK_URL=http://localhost:9000/alerts
ALERT_DISPATCHER_URL=http://localhost:8080
REPORT_GENERATOR_URL=http://localhost:8081
API_GATEWAY_URL=http://localhost:8000
SLACK_WEBHOOK_URL=
# ==================== External APIs ====================
# OpenWeatherMap API (for weather and air quality data)
# Sign up at: https://openweathermap.org/api
OPENWEATHERMAP_API_KEY=your_openweathermap_api_key_here
OPENWEATHERMAP_BASE_URL=https://api.openweathermap.org/data/2.5
# OpenWeatherMap Air Pollution API (uses same API key as weather)
# Endpoint: https://api.openweathermap.org/data/2.5/air_pollution
OPENWEATHERMAP_AIR_POLLUTION_URL=https://api.openweathermap.org/data/2.5/air_pollution
# OpenAQ API (for air quality data - currently disabled, fallback only)
# Sign up at: https://openaq.org/
OPENAQ_API_KEY=your_openaq_api_key_here
OPENAQ_BASE_URL=https://api.openaq.org/v3
# GeoNames API (for LOD Cloud linksets - Optional)
# Register free account at: https://www.geonames.org/login
# Enable "Free Web Services" in account settings
GEONAMES_USERNAME=demo # Replace with your username for production
# ==================== Email Configuration ====================
SMTP_HOST=smtp.gmail.com
SMTP_PORT=587
SMTP_USE_TLS=true
SMTP_USERNAME=your_email@gmail.com
SMTP_PASSWORD=your_app_password
EMAIL_FROM=noreply@yourdomain.com
# ==================== Monitoring & Observability ====================
SENTRY_DSN=
PROMETHEUS_PORT=9090
METRICS_ENABLED=false
# ==================== Performance Tuning ====================
MAX_WORKERS=4
BATCH_SIZE=10
REQUEST_TIMEOUT=30
RETRY_MAX_ATTEMPTS=3
RETRY_BACKOFF_FACTOR=2
# ==================== Security ====================
SECRET_KEY=change_this_to_a_random_secret_key
API_KEY_HEADER=X-API-Key
CORS_ORIGINS=http://localhost:3000,http://localhost:8000
# ==================== Feature Flags ====================
ENABLE_SEEDING=true
ENABLE_CACHING=true
ENABLE_ASYNC_PROCESSING=true