Sha256: a44d3f4a57050308deee531c0dcd54ca0c8c68dccf5b792baf58da826db8ba19

Contents?: true

Size: 1.67 KB

Versions: 3

Compression:

Stored size: 1.67 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
  # Persist "dirty" session between RPC calls (might be required for apps using stimulus_reflex <3.0)
  # persistent_session_enabled: true
  # 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
  <%- if redis? -%>
  # Use Redis to broadcast messages to AnyCable server
  broadcast_adapter: redis
  <%- 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__"

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
anycable-rails-1.0.0.rc4 lib/generators/anycable/setup/templates/config/anycable.yml.tt
anycable-rails-1.0.0.rc3 lib/generators/anycable/setup/templates/config/anycable.yml.tt
anycable-rails-1.0.0.rc2 lib/generators/anycable/setup/templates/config/anycable.yml.tt