Sha256: 0b2caad9745e02807e43f7a6db856e2469b74543503d49ba6eba90c589f8aab2

Contents?: true

Size: 1.82 KB

Versions: 19

Compression:

Stored size: 1.82 KB

Contents

# typed: false
# frozen_string_literal: true

# Use this hook to configure the litestream-ruby gem.
# All configuration options will be available as environment variables, e.g.
# config.replica_bucket becomes LITESTREAM_REPLICA_BUCKET
# This allows you to configure Litestream using Rails encrypted credentials,
# or some other mechanism where the values are only avaialble at runtime.

Rails.application.configure do
  # An example of using Rails encrypted credentials to configure Litestream.
  # litestream_credentials = Rails.application.credentials.litestream

  # Replica-specific bucket location.
  # This will be your bucket's URL without the `https://` prefix.
  # For example, if you used DigitalOcean Spaces, your bucket URL could look like:
  #   https://myapp.fra1.digitaloceanspaces.com
  # And so you should set your `replica_bucket` to:
  #   myapp.fra1.digitaloceanspaces.com
  # Litestream supports Azure Blog Storage, Backblaze B2, DigitalOcean Spaces,
  # Scaleway Object Storage, Google Cloud Storage, Linode Object Storage, and
  # any SFTP server.
  # In this example, we are using Rails encrypted credentials to store the URL to
  # our storage provider bucket.
  # config.litestream.replica_bucket = litestream_credentials&.replica_bucket

  # Replica-specific authentication key.
  # Litestream needs authentication credentials to access your storage provider bucket.
  # In this example, we are using Rails encrypted credentials to store the access key ID.
  # config.litestream.replica_key_id = litestream_credentials&.replica_key_id

  # Replica-specific secret key.
  # Litestream needs authentication credentials to access your storage provider bucket.
  # In this example, we are using Rails encrypted credentials to store the secret access key.
  # config.litestream.replica_access_key = litestream_credentials&.replica_access_key
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
hephaestus-0.7.7.2 config/initializers/litestream.rb
hephaestus-0.7.7 config/initializers/litestream.rb
hephaestus-0.7.6.2 config/initializers/litestream.rb
hephaestus-0.7.6.1 config/initializers/litestream.rb
hephaestus-0.7.6 config/initializers/litestream.rb
hephaestus-0.7.5.3 config/initializers/litestream.rb
hephaestus-0.7.5.2 config/initializers/litestream.rb
hephaestus-0.7.5.1 config/initializers/litestream.rb
hephaestus-0.7.5 config/initializers/litestream.rb
hephaestus-0.7.4.2 config/initializers/litestream.rb
hephaestus-0.7.4.1 config/initializers/litestream.rb
hephaestus-0.7.4 config/initializers/litestream.rb
hephaestus-0.7.3.1 config/initializers/litestream.rb
hephaestus-0.7.3 config/initializers/litestream.rb
hephaestus-0.7.2.5 config/initializers/litestream.rb
hephaestus-0.7.2.4 config/initializers/litestream.rb
hephaestus-0.7.2.3 config/initializers/litestream.rb
hephaestus-0.7.2.2 config/initializers/litestream.rb
hephaestus-0.7.2.1 config/initializers/litestream.rb