Rename load_config to zz_load_config so initializers/secret_token.rb
authorTom Clegg <tom@curoverse.com>
Mon, 10 Mar 2014 20:26:57 +0000 (16:26 -0400)
committerTom Clegg <tom@curoverse.com>
Mon, 10 Mar 2014 20:26:57 +0000 (16:26 -0400)
gets loaded before we check for missing config settings.

refs #2076

apps/workbench/config/initializers/zz_load_config.rb [moved from apps/workbench/config/initializers/load_config.rb with 100% similarity]
services/api/config/application.default.yml
services/api/config/application.yml.example
services/api/config/initializers/zz_load_config.rb [moved from services/api/config/initializers/load_config.rb with 100% similarity]

index c8ad012d68e77fa315a55b6c7f09d0cb242037aa..36eedb4fceec8fb264613f39289043b5d1696170 100644 (file)
@@ -41,6 +41,7 @@ test:
   active_record.mass_assignment_sanitizer: :strict
 
 common:
+  secret_token: ~
   uuid_prefix: <%= Digest::MD5.hexdigest(`hostname`).to_i(16).to_s(36)[0..4] %>
 
   git_repositories_dir: /var/cache/git
index 3035c8ba04986bd1f3cd0363f9407af889bbf01c..dcfcb42f186404df4b42da0fb1f318dd7f70e501 100644 (file)
@@ -13,6 +13,9 @@
 development:
 
 production:
+  # At minimum, you need a nice long randomly generated secret_token here.
+  secret_token: ~
+
   uuid_prefix: bogus
 
   # This is suitable for AWS; see common section below for a static example.
@@ -32,6 +35,7 @@ test:
   uuid_prefix: zzzzz
 
 common:
+  secret_token: ~
   compute_node_nameservers:
     - 192.168.0.1
     - 172.16.0.1