Set the secret token

This commit is contained in:
Michael Sofaer 2010-11-06 13:57:06 -07:00
parent cf7b957b28
commit 3876de9cf2
2 changed files with 7 additions and 0 deletions

View file

@ -1,2 +1,8 @@
include_recipe "common::iptables"
include_recipe "common::daemontools"
require 'active_support'
template "/usr/local/app/diaspora/config/initializers/secret_token.rb" do
source "secret_token.rb.erb"
variables :secret_token => ActiveSupport::SecureRandom.hex(40)
end

View file

@ -0,0 +1 @@
Rails.application.config.secret_token = '<%= @secret_token %>'