-
Notifications
You must be signed in to change notification settings - Fork 1
/
anycable.toml
59 lines (46 loc) · 1.37 KB
/
anycable.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# AnyCable server configuration (development).
#
# Read more at https://docs.anycable.io/anycable-go/configuration
# Public mode disables connection authentication, pub/sub streams and broadcasts verification
public = true
# The application secret key
secret = "anycable-local-secret"
# Broadcasting adapters for app-to-clients messages
broadcast_adapters = ["http"]
# Pub/sub adapter for inter-node communication
# pubsub_adapter = "redis" # or "nats"
[server]
host = "localhost"
port = 8080
[logging]
debug = true
# Read more about broker: https://docs.anycable.io/anycable-go/reliable_streams
[broker]
adapter = "memory"
history_ttl = 300
history_limit = 100
sessions_ttl = 300
[rpc]
host = "http://localhost:3000/api/anycable"
# Specify HTTP headers that must be proxied to the RPC service
proxy_headers = []
# RPC concurrency (max number of concurrent RPC requests)
concurrency = 10
# Read more about AnyCable JWT: https://docs.anycable.io/anycable-go/jwt_identification
[jwt]
# param = "jid"
# force = true
# Read more about AnyCable signed streams: https://docs.anycable.io/anycable-go/signed_streams
[streams]
# Enable public (unsigned) streams
# public = true
# Enable whispering support for pub/sub streams
# whisper = true
pubsub_channel = "$pubsub"
# turbo = true
# cable_ready = true
[redis]
# url = "redis://localhost:6379"
[http_broadcast]
port = 8080
path = "/_broadcast"