Sha256: 1102fbf45e40acf6fa96431d2ef53b364a2a383780d963dfe7e67118272328df

Contents?: true

Size: 1.87 KB

Versions: 5

Compression:

Stored size: 1.87 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 broadcaster
  broadcast_adapter: http
  <%- end -%>
  <%- if redis? -%>
  # You can use REDIS_URL env var to configure Redis URL.
  # Localhost is used by default.
  # redis_url: "redis://localhost:6379/1"
  # Use the same channel name for WebSocket server, e.g.:
  #   $ anycable-go --redis_channel="__anycable__"
  # redis_channel: "__anycable__"
  <%- end -%>
  <%- if http_rpc? -%>
  # Use HTTP RPC mounted at the specified path of your web server
  # Read more about AnyCable RPC:  <%= DOCS_ROOT %>/anycable-go/rpc
  http_rpc_mount_path: "/_anycable"
  <%- end -%>

development:
  <<: *default
  # WebSocket endpoint of your AnyCable server for clients to connect to
  # Make sure you have the `action_cable_meta_tag` in your HTML layout
  # to propogate this value to the client app
  websocket_url: "ws://localhost:8080/cable"

test:
  <<: *default

production:
  <<: *default
  websocket_url: ~

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
anycable-rails-core-1.5.3 lib/generators/anycable/setup/templates/config/anycable.yml.tt
anycable-rails-core-1.5.2 lib/generators/anycable/setup/templates/config/anycable.yml.tt
anycable-rails-core-1.5.1 lib/generators/anycable/setup/templates/config/anycable.yml.tt
anycable-rails-core-1.5.0 lib/generators/anycable/setup/templates/config/anycable.yml.tt
anycable-rails-core-1.5.0.rc.1 lib/generators/anycable/setup/templates/config/anycable.yml.tt