Initial commit: Project foundation
- Backend: Go API server with Gin framework - Frontend: React setup (placeholder) - ML Service: Python FastAPI skeleton - Docker Compose: Full stack configuration - Database: PostgreSQL schema with migrations - Documentation: Implementation plan and README Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
39
backend/configs/config.yaml
Normal file
39
backend/configs/config.yaml
Normal file
@@ -0,0 +1,39 @@
|
||||
server:
|
||||
port: 8080
|
||||
read_timeout: 30s
|
||||
write_timeout: 30s
|
||||
|
||||
database:
|
||||
host: ${DB_HOST:postgres}
|
||||
port: ${DB_PORT:5432}
|
||||
name: ${DB_NAME:vlogs_manager}
|
||||
user: ${DB_USER:vlogs}
|
||||
password: ${DB_PASSWORD}
|
||||
max_connections: 25
|
||||
|
||||
victorialogs:
|
||||
url: ${VLOGS_URL:http://victorialogs:9428}
|
||||
timeout: 30s
|
||||
max_query_size: 10000
|
||||
|
||||
vmalert:
|
||||
url: ${VMALERT_URL:http://vmalert:8880}
|
||||
rules_dir: ${VMALERT_RULES_DIR:/app/rules}
|
||||
reload_endpoint: "/-/reload"
|
||||
|
||||
ml_service:
|
||||
url: ${ML_SERVICE_URL:http://ml-service:8000}
|
||||
timeout: 60s
|
||||
|
||||
auth:
|
||||
jwt_secret: ${JWT_SECRET}
|
||||
access_token_duration: 15m
|
||||
refresh_token_duration: 168h
|
||||
|
||||
rate_limiting:
|
||||
enabled: true
|
||||
requests_per_minute:
|
||||
admin: 1000
|
||||
editor: 500
|
||||
analyst: 300
|
||||
viewer: 200
|
||||
0
backend/configs/vmalert-rules/.gitkeep
Normal file
0
backend/configs/vmalert-rules/.gitkeep
Normal file
Reference in New Issue
Block a user