Sha256: 59430a6546ba50e25ae5516a5c84f7a4603df6f23d915fb6946f49461b01f683

Contents?: true

Size: 1.36 KB

Versions: 2

Compression:

Stored size: 1.36 KB

Contents

# 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
  # Turn on/off access logs ("Started..." and "Finished...")
  access_logs_disabled: false
  # Persist "dirty" session between RPC calls (might be required for StimulusReflex apps)
  persistent_session_enabled: <%= stimulus_reflex? %>
  # 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
  # Use the same channel name for WebSocket server, e.g.:
  #   $ anycable-go --redis-channel="__anycable__"
  redis_channel: "__anycable__"

development:
  <<: *default
  redis_url: "redis://localhost:6379/1"

production:
  <<: *default

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
anycable-rails-1.0.0.preview2 lib/rails/generators/anycable/setup/templates/config/anycable.yml.tt
anycable-rails-1.0.0.preview1 lib/rails/generators/anycable/setup/templates/config/anycable.yml.tt