refactor wip

This commit is contained in:
Timur Gordon
2025-08-05 12:19:38 +02:00
parent 8ed40ce99c
commit 7a652c9c3c
51 changed files with 6183 additions and 840 deletions

28
cmd/config.toml Normal file
View File

@@ -0,0 +1,28 @@
[global]
# Redis connection URL for job queuing
redis_url = "redis://localhost:6379"
# WebSocket Server Configuration
# Handles WebSocket connections for job dispatching
[websocket_server]
host = "127.0.0.1"
port = 8443
redis_url = "redis://127.0.0.1/"
auth = false
tls = false
# cert = "/path/to/cert.pem" # Uncomment and set path for TLS
# key = "/path/to/key.pem" # Uncomment and set path for TLS
# tls_port = 8444 # Uncomment for separate TLS port
# Circles configuration - maps circle names to lists of member public keys
[websocket_server.circles]
# Example circle configuration:
# "admin" = ["04abc123...", "04def456..."]
# "users" = ["04ghi789...", "04jkl012..."]
# "ws" = [] # Public circle (no auth required)
# OSIS Worker Configuration
# Handles OSIS (HeroScript) execution
[osis_worker]
binary_path = "/Users/timurgordon/code/git.ourworld.tf/herocode/hero/target/debug/osis"
env_vars = { "RUST_LOG" = "info", "WORKER_TYPE" = "osis", "MAX_CONCURRENT_JOBS" = "5" }