|
1 | | -# This file contains per-environment settings for AnyCable. |
2 | | -# |
3 | | -# Since AnyCable config is based on anyway_config (https://github.com/palkan/anyway_config), all AnyCable settings |
4 | | -# can be set or overridden through the corresponding environment variables. |
5 | | -# E.g., `rpc_host` is overridden by ANYCABLE_RPC_HOST, `debug` by ANYCABLE_DEBUG etc. |
6 | | -# |
7 | | -# Note that AnyCable recognizes REDIS_URL env variable for Redis pub/sub adapter. If you want to |
8 | | -# use another Redis instance for AnyCable, provide ANYCABLE_REDIS_URL variable. |
9 | | -# |
10 | | -# Read more about AnyCable configuration here: https://docs.anycable.io/#/ruby/configuration |
| 1 | +# Read more about AnyCable configuration here: https://docs.anycable.io/ruby/configuration |
11 | 2 | # |
12 | 3 | default: &default |
13 | 4 | # Turn on/off access logs ("Started..." and "Finished...") |
14 | 5 | access_logs_disabled: false |
15 | | - # Persist "dirty" session between RPC calls (might be required for apps using stimulus_reflex <3.0) |
16 | | - # persistent_session_enabled: true |
17 | | - # This is the host and the port to run AnyCable RPC server on. |
18 | | - # You must configure your WebSocket server to connect to it, e.g.: |
19 | | - # $ anycable-go --rpc-host="<rpc hostname>:50051" |
20 | | - rpc_host: "127.0.0.1:50051" |
21 | | - # Whether to enable gRPC level logging or not |
22 | | - log_grpc: false |
23 | 6 | # Use HTTP adapter for a quick start (since redis gem is not present in the project) |
24 | 7 | broadcast_adapter: http |
25 | | - # Use the same channel name for WebSocket server, e.g.: |
26 | | - # $ anycable-go --redis-channel="__anycable__" |
27 | | - redis_channel: "__anycable__" |
28 | 8 | # WebSocket server URL for clients |
29 | | - websocket_url: "ws://localhost:8080/cable" |
| 9 | + websocket_url: "/cable" |
| 10 | + http_rpc_mount_path: "/_anycable" |
30 | 11 |
|
31 | 12 | development: |
32 | 13 | <<: *default |
33 | | - http_rpc_mount_path: "/_anycable" |
34 | 14 |
|
35 | 15 | test: |
36 | 16 | <<: *default |
37 | | - rpc_pool_size: 5 |
38 | | - http_broadcast_url: "http://localhost:3023/_anycable_rack_broadcast" |
39 | 17 |
|
40 | 18 | production: |
41 | 19 | <<: *default |
|
0 commit comments