refactor wip
This commit is contained in:
28
cmd/config.toml
Normal file
28
cmd/config.toml
Normal 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" }
|
Reference in New Issue
Block a user