Skip to content

Complete Configuration File Examples (Production, Dev, Edge) ​

Use these complete, tested configuration templates to jump-start your RUSEON Core deployment.


1. Production Configuration (config.production.yaml) ​

Recommended for high-security, high-concurrency production server environments:

yaml
server:
  host: "0.0.0.0"
  port: 8080
  base_path: ""
  tls:
    enabled: true
    cert_file: "/etc/letsencrypt/live/docs.example.com/fullchain.pem"
    key_file: "/etc/letsencrypt/live/docs.example.com/privkey.pem"
    min_version: "TLS1.3"
  cors:
    allowed_origins:
      - "https://portal.example.com"

auth:
  enabled: true
  jwt_secret: "prod_entropy_secret_min_32_characters_long_key_here"
  token_expiry: "24h"
  bcrypt_cost: 12

webrtc:
  public_ip: "203.0.113.50"
  port_range_start: 50000
  port_range_end: 50100
  stun_servers:
    - "stun:stun.l.google.com:19302"

recording:
  enabled: true
  storage_path: "/data/recordings"
  segment_duration: "1h"
  retention_days: 30
  min_disk_free_gb: 50
  max_disk_usage_percent: 90
  io_engine: "linux_direct"

logging:
  format: "json"
  level: "info"
  caller: false

2. Local Development Configuration (config.dev.yaml) ​

Optimized for developer laptops and local testing:

yaml
server:
  host: "127.0.0.1"
  port: 8080

auth:
  enabled: false # Bypass token checks during local frontend development

recording:
  enabled: true
  storage_path: "./data/recordings"
  segment_duration: "5m"
  retention_days: 1
  io_engine: "default"

logging:
  format: "console"
  level: "debug"
  caller: true

3. Minimal Edge / SBC Gateway (config.edge.yaml) ​

Optimized for ARM64 edge devices (Raspberry Pi 4/5, Jetson Orin, Rockchip RK3588):

yaml
server:
  host: "0.0.0.0"
  port: 8080

auth:
  enabled: true
  jwt_secret: "edge_gateway_device_secret_32_chars"

recording:
  enabled: true
  storage_path: "/mnt/storage/recordings"
  segment_duration: "1h"
  retention_days: 7
  min_disk_free_gb: 5
  io_engine: "linux_direct"

hls:
  lazy_hls: true
  idle_timeout: "30s"

logging:
  format: "json"
  level: "warn" # Minimize flash storage write wear

Released under the MIT License.