tracks/config/initializers/secret_token.rb

13 lines
584 B
Ruby
Raw Normal View History

2012-04-05 10:43:56 +02:00
# Be sure to restart your server when you modify this file.
2013-05-11 23:12:20 +02:00
# Your secret key is used for verifying the integrity of signed cookies.
2012-04-05 10:43:56 +02:00
# If you change this key, all old signed cookies will become invalid!
2013-05-11 23:12:20 +02:00
2012-04-05 10:43:56 +02:00
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
2013-05-11 23:12:20 +02: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.
Tracksapp::Application.config.secret_key_base = SITE_CONFIG["secret_token"] || SecureRandom.hex(64)