From a465292406a627d7b35f68e5a067e184e8ab9747 Mon Sep 17 00:00:00 2001 From: Nicolae Claudius Date: Sun, 1 Sep 2013 18:18:06 +0300 Subject: [PATCH] externalize secret token --- config/initializers/secret_token.rb | 2 +- config/settings.sample.yml | 3 +++ vendor/plugins/.gitkeep | 0 3 files changed, 4 insertions(+), 1 deletion(-) delete mode 100644 vendor/plugins/.gitkeep diff --git a/config/initializers/secret_token.rb b/config/initializers/secret_token.rb index 5f0e4ee..852bd00 100644 --- a/config/initializers/secret_token.rb +++ b/config/initializers/secret_token.rb @@ -4,4 +4,4 @@ # If you change this key, all old signed cookies will become invalid! # Make sure the secret is at least 30 characters and all random, # no regular words or you'll be exposed to dictionary attacks. -Entrydns::Application.config.secret_key_base = '0ce1f02a4b3fc4d1a1c8d22973b21e8589e9314dc338294953f0b985e3f44f12c8af74f2d9ba6f7c7bdb736c4efc5ea3f8135e23b1a036d033cd23331383ac75' +Entrydns::Application.config.secret_key_base = Settings.secret_key_base diff --git a/config/settings.sample.yml b/config/settings.sample.yml index 15c8b42..7f4f670 100644 --- a/config/settings.sample.yml +++ b/config/settings.sample.yml @@ -1,3 +1,6 @@ +# framework +secret_key_base: 0ce1f02a4b3fc4d1a1c8d22973b21e8589e9314dc338294953f0b985e3f44f12c8af74f2d9ba6f7c7bdb736c4efc5ea3f8135e23b1a036d033cd23331383ac75 + # application default_ttl: 3600 min_ttl: 60 diff --git a/vendor/plugins/.gitkeep b/vendor/plugins/.gitkeep deleted file mode 100644 index e69de29..0000000