moves secret token into .env

Robert Whitney 12 年 前
コミット
b5d54ef4dd
共有2 個のファイルを変更した2 個の追加1 個の削除を含む
  1. 1 0
      .env.example
  2. 1 1
      config/initializers/secret_token.rb

+ 1 - 0
.env.example

@@ -0,0 +1 @@
1
+APP_SECRET_TOKEN=REPLACE_ME_NOW!

+ 1 - 1
config/initializers/secret_token.rb

@@ -4,4 +4,4 @@
4 4
 # If you change this key, all old signed cookies will become invalid!
5 5
 # Make sure the secret is at least 30 characters and all random,
6 6
 # no regular words or you'll be exposed to dictionary attacks.
7
-Huginn::Application.config.secret_token = 'REPLACE_ME_NOW!'
7
+Huginn::Application.config.secret_token = ENV['APP_SECRET_TOKEN']