2018-10-17 09:38:04 -05:00
|
|
|
# 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 `rails secret` to generate a secure secret key.
|
|
|
|
|
|
|
|
# Make sure the secrets in this file are kept private
|
|
|
|
# if you're sharing your code publicly.
|
|
|
|
|
2018-11-11 11:40:22 -06:00
|
|
|
# Shared secrets are available across all environments.
|
|
|
|
|
|
|
|
# shared:
|
|
|
|
# api_key: a1B2c3D4e5F6
|
|
|
|
|
|
|
|
# Environmental secrets are only available for that specific environment.
|
|
|
|
|
2014-09-22 10:28:33 +02:00
|
|
|
development:
|
|
|
|
secret_key_base: <%= SITE_CONFIG["secret_token"] || SecureRandom.hex(64) %>
|
2020-08-20 14:07:45 +03:00
|
|
|
|
2014-09-22 10:28:33 +02:00
|
|
|
test:
|
|
|
|
secret_key_base: <%= SITE_CONFIG["secret_token"] || SecureRandom.hex(64) %>
|
2020-08-20 14:07:45 +03:00
|
|
|
|
2018-11-11 11:40:22 -06:00
|
|
|
# Do not keep production secrets in the unencrypted secrets file.
|
|
|
|
# Instead, either read values from the environment.
|
|
|
|
# Or, use `bin/rails secrets:setup` to configure encrypted secrets
|
|
|
|
# and move the `production:` environment over there.
|
|
|
|
|
2014-09-22 10:28:33 +02:00
|
|
|
production:
|
2018-10-17 09:38:04 -05:00
|
|
|
secret_key_base: <%= SITE_CONFIG["secret_token"] || SecureRandom.hex(64) %>
|