We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 997df8d commit 7dbb611Copy full SHA for 7dbb611
config/initializers/identity_config.rb
@@ -1,5 +1,16 @@
1
# frozen_string_literal: true
2
3
-identity_settings_files = Config.setting_files(Rails.root.join('config', 'identity_settings'), Settings.vsp_environment)
+ENV_PREFIX = 'IDENTITY_SETTINGS'
4
+ENV_SEPARATOR = '__'
5
+SETTINGS_FOLDER = Rails.root.join('config', 'identity_settings')
6
-IdentitySettings = Config.load_files(identity_settings_files)
7
+IdentitySettings = Config::Options.new
8
+
9
+Config.setting_files(SETTINGS_FOLDER, Settings.vsp_environment).each do |file|
10
+ IdentitySettings.add_source!(file)
11
+end
12
13
+secrets_source = Config::Sources::EnvSource.new(ENV, prefix: ENV_PREFIX, separator: ENV_SEPARATOR)
14
+IdentitySettings.add_source!(secrets_source)
15
16
+IdentitySettings.reload!
0 commit comments