Sha256: 914b040eabb12e49442e06ef9146e7e28a155090e07e92ee87904b71520722f0

Contents?: true

Size: 1.55 KB

Versions: 4

Compression:

Stored size: 1.55 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: <%= DOCS_ROOT %>/ruby/configuration
#
default: &default
  # Turn on/off access logs ("Started..." and "Finished...")
  access_logs_disabled: false
  # Whether to enable gRPC level logging or not
  log_grpc: false
  <%- if redis? -%>
  # Use Redis to broadcast messages to AnyCable server
  broadcast_adapter: redis
  <%- elsif nats? -%>
  # Use NATS to broadcast messages to AnyCable server
  broadcast_adapter: nats
  <%- else -%>
  # Use HTTP adapter for a quick start (since redis gem is not present in the project)
  broadcast_adapter: http
  <%- end -%>
  # Use the same channel name for WebSocket server, e.g.:
  #   $ anycable-go --redis_channel="__anycable__"
  redis_channel: "__anycable__"
  <%- if redis? -%>
  # You can use REDIS_URL env var to configure Redis URL.
  # Localhost is used by default.
  # redis_url: "redis://localhost:6379/1"
  <%- end -%>
  <%- if http_rpc? -%>
  http_rpc_mount_path: "/_anycable"
  <%- end -%>

development:
  <<: *default

test:
  <<: *default

production:
  <<: *default

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
anycable-rails-core-1.4.4 lib/generators/anycable/setup/templates/config/anycable.yml.tt
anycable-rails-core-1.4.3 lib/generators/anycable/setup/templates/config/anycable.yml.tt
anycable-rails-core-1.4.2 lib/generators/anycable/setup/templates/config/anycable.yml.tt
anycable-rails-core-1.4.1 lib/generators/anycable/setup/templates/config/anycable.yml.tt