2015-07-17 14:47:58 -07:00
|
|
|
# Be sure to restart your server when you modify this file.
|
|
|
|
|
2023-07-21 19:39:32 -07:00
|
|
|
# Your secret key is used for verifying the integrity of signed cookies.
|
2015-07-17 14:47:58 -07:00
|
|
|
# If you change this key, all old signed cookies will become invalid!
|
2023-07-21 19:39:32 -07:00
|
|
|
|
2015-07-17 14:47:58 -07:00
|
|
|
# Make sure the secret is at least 30 characters and all random,
|
|
|
|
# no regular words or you'll be exposed to dictionary attacks.
|
2023-07-21 19:39:32 -07:00
|
|
|
# You can use `rake secret` to generate a secure secret key.
|
|
|
|
|
|
|
|
# Make sure your secret_key_base is kept private
|
|
|
|
# if you're sharing your code publicly.
|
2024-01-19 00:00:46 -08:00
|
|
|
if Rails.env.development? || Rails.env.test?
|
2023-10-25 15:54:19 -07:00
|
|
|
# In development, we use a hardcoded secret key, because it doesn't actually
|
|
|
|
# need to be secret!
|
|
|
|
OpenneoImpressItems::Application.config.secret_key_base = "7584841652f89044a8b5a428efa6dfac2461449eb24741a33668cd642130d79f93b0347766ebf4a4d7d5033a263c36431594ad56b5735a7325c8cdda991219c2"
|
|
|
|
else
|
|
|
|
# In general, we use the SECRET_TOKEN provided as an environment variable!
|
|
|
|
OpenneoImpressItems::Application.config.secret_key_base = ENV.fetch('SECRET_TOKEN')
|
|
|
|
end
|