Sha256: 64842446e38bdf67e3353ae007d75c4fe9762974ccbf01329ec1c7d98bb5912b

Contents?: true

Size: 1.61 KB

Versions: 8

Compression:

Stored size: 1.61 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 -%>

development:
  <<: *default

test:
  <<: *default

production:
  <<: *default
  <%- if !redis? && !nats? -%>
  # Use Redis or NATS in production
  broadcast_adapter: redis
  # broadcast_adapter: nats
  <%- end -%>

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
anycable-rails-core-1.4.0 lib/generators/anycable/setup/templates/config/anycable.yml.tt
anycable-rails-1.4.0 lib/generators/anycable/setup/templates/config/anycable.yml.tt
anycable-rails-1.4.0.rc.4 lib/generators/anycable/setup/templates/config/anycable.yml.tt
anycable-rails-1.4.0.rc.3 lib/generators/anycable/setup/templates/config/anycable.yml.tt
anycable-rails-1.4.0.rc.2 lib/generators/anycable/setup/templates/config/anycable.yml.tt
anycable-rails-1.4.0.rc.1 lib/generators/anycable/setup/templates/config/anycable.yml.tt
anycable-rails-1.3.7 lib/generators/anycable/setup/templates/config/anycable.yml.tt
anycable-rails-1.3.6 lib/generators/anycable/setup/templates/config/anycable.yml.tt