Skip to content

Commit

Permalink
Update and rename config.json to config.toml
Browse files Browse the repository at this point in the history
Use new config syntax for centrifugo 6
  • Loading branch information
gAlleb authored Feb 4, 2025
1 parent 17614f0 commit 4c71e64
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 38 deletions.
38 changes: 0 additions & 38 deletions docker/centrifugo/config.json

This file was deleted.

47 changes: 47 additions & 0 deletions docker/centrifugo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[http_api]
insecure = false
key = "111fff39-283d-1111-88ea-111fff98a98a"

[client]
allowed_origins = ["*"]
allow_anonymous_connect_without_token = true
connect_include_server_time = true

[swagger]
enabled = false

[admin]
enabled = true
insecure = false
password = "111fff50-1111-1111-841a80111fff"
secret = "111fff9a-1111-1111-1111-8cf7ba111fff"

[uni_websocket]
enabled = true
handler_prefix = "/connection/ws"

[uni_sse]
enabled = true
handler_prefix = "/connection/sse"

[uni_http_stream]
enabled = true

[http_server]
port = 9998
internal_port = 9998

[websocket]
disabled = true

[[channel.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
force_recovery = true
force_recovery_mode = "cache"

0 comments on commit 4c71e64

Please sign in to comment.