-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
26 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,30 @@ | ||
# gRPC server settings, anycable grpc server will listen | ||
# websocket server at given host:port, usually Anycable server runs locally to ws server | ||
# MUST BE in sync with ws-server setting -rpc=0.0.0.0:50051 | ||
# rpc_host: "localhost:50051" | ||
|
||
# redis url | ||
# MUST BE in sync with ws-server setting -redis=redis://localhost:6379/5 | ||
# REM: Redis PubSub system doesn't use the database part of URI | ||
# redis_url: "redis://localhost:6379/5" | ||
|
||
# redis_sentinels: | ||
# - { host: 'localhost', port: 26379 } | ||
# - { host: 'redis-1-2', port: 26379 } | ||
# - { host: 'redis-1-3', port: 26379 } | ||
|
||
# anycable use single pubsub queue, this is queue name | ||
# MUST BE in sync with ws-server setting -redis_channel=__anycable__ | ||
# redis_channel: "__anycable__", | ||
|
||
#---------- ENVIRONMENT VARIABLES ---------- | ||
# since Anycable config based on anyway_config (https://github.com/palkan/anyway_config), all Anycable settings, | ||
# can be set or overridden through corresponding Environment variable. | ||
# Ex: rpc_host is overridden by ANYCABLE_RPC_HOST, redis_url by ANYCABLE_REDIS_URL e.t.c Look in anyway_config for more details | ||
|
||
# This file contains per-environment settings for AnyCable. | ||
# | ||
# Since AnyCable config is based on anyway_config (https://github.com/palkan/anyway_config), all AnyCable settings | ||
# can be set or overridden through the corresponding environment variables. | ||
# E.g., `rpc_host` is overridden by ANYCABLE_RPC_HOST, `debug` by ANYCABLE_DEBUG etc. | ||
# | ||
# Note that AnyCable recognizes REDIS_URL env variable for Redis pub/sub adapter. If you want to | ||
# use another Redis instance for AnyCable, provide ANYCABLE_REDIS_URL variable. | ||
# | ||
# Read more about AnyCable configuration here: https://docs.anycable.io/#/ruby/configuration | ||
# | ||
default: &default | ||
rpc_host: <%= ENV.fetch("ANYCABLE_RPC_HOST", "localhost:50051") %> | ||
# Turn on/off access logs ("Started..." and "Finished...") | ||
access_logs_disabled: false | ||
# This is the host and the port to run AnyCable RPC server on. | ||
# You must configure your WebSocket server to connect to it, e.g.: | ||
# $ anycable-go --rpc-host="<rpc hostname>:50051" | ||
rpc_host: "127.0.0.1:50051" | ||
# Whether to enable gRPC level logging or not | ||
log_grpc: false | ||
log_file: nil | ||
debug: false # Shortcut to enable GRPC logging and debug level | ||
log_level: info | ||
# Use the same channel name for WebSocket server, e.g.: | ||
# $ anycable-go --redis-channel="__anycable__" | ||
redis_channel: "__anycable__" | ||
redis_sentinels: [] | ||
|
||
development: | ||
<<: *default | ||
redis_url: <%= ENV.fetch("REDIS_URL", "redis://localhost:6379/2") %> | ||
redis_url: "redis://localhost:6379/1" | ||
|
||
production: | ||
<<: *default | ||
redis_url: <%= ENV.fetch("REDIS_URL", "redis://localhost:6379/1") %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters