Set the secret token
This commit is contained in:
parent
cf7b957b28
commit
3876de9cf2
2 changed files with 7 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
Rails.application.config.secret_token = '<%= @secret_token %>'
|
||||
Loading…
Reference in a new issue