31 lines
720 B
Cheetah
31 lines
720 B
Cheetah
allow_anonymous_connect_without_token = true
|
|
api_insecure = true
|
|
admin = true
|
|
admin_insecure = true
|
|
port = 6_020
|
|
internal_port = 6_025
|
|
websocket_disable = true
|
|
uni_websocket = true
|
|
uni_sse = true
|
|
uni_http_stream = true
|
|
proxy_connect_endpoint = "grpc://127.0.0.1:6300"
|
|
proxy_connect_timeout = "10s"
|
|
grpc_api = true
|
|
grpc_api_port = 6_301
|
|
allowed_origins = ["*"]
|
|
|
|
{{ if isTrue .Env.ENABLE_REDIS }}
|
|
engine = "redis"
|
|
redis_address = "{{ .Env.REDIS_HOST }}:{{ default .Env.REDIS_PORT "6379" }}"
|
|
redis_db = 0
|
|
{{ end }}
|
|
|
|
[[namespaces]]
|
|
name = "station"
|
|
history_size = 1
|
|
history_ttl = "30s"
|
|
allow_subscribe_for_client = true
|
|
allow_subscribe_for_anonymous = true
|
|
allow_history_for_client = true
|
|
allow_history_for_anonymous = true
|