# Be sure to restart your server when you modify this file.

# Your secret key is used for verifying the integrity of signed cookies.
# If you change this key, all old signed cookies will become invalid!

# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
# You can use `rake secret` to generate a secure secret key.

# Make sure the secrets in this file are kept private
# if you're sharing your code publicly.

defaults: &defaults
  secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
  dragonfly_secret: <%= ENV["DRAGONFLY_SECRET"] %>
  api_token_secret: <%= ENV["API_TOKEN_SECRET"] %>
development:
  <<: *defaults

test:
  <<: *defaults

production:
  <<: *defaults

# Be sure to restart your server when you modify this file.

# Your secret key is used for verifying the integrity of signed cookies.
# If you change this key, all old signed cookies will become invalid!

# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
# You can use `rake secret` to generate a secure secret key.

# Make sure the secrets in this file are kept private
# if you're sharing your code publicly.

defaults: &defaults
  secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
  dragonfly_secret: <%= ENV["DRAGONFLY_SECRET"] || ENV["SECRET_KEY_BASE"] %>
  api_token_secret: <%= ENV["API_TOKEN_SECRET"] || ENV["SECRET_KEY_BASE"] %>

development:
  <<: *defaults

test:
  <<: *defaults

production:
  <<: *defaults

Allow DRAGONFLY_SECRET and API_TOKEN_SECRET to re-use SECRET_KEY_BASE.
Allow DRAGONFLY_SECRET and API_TOKEN_SECRET to re-use SECRET_KEY_BASE.