Skip to content

Commit

Permalink
Add notify key
Browse files Browse the repository at this point in the history
  • Loading branch information
syed-ali-tw committed Dec 2, 2024
1 parent 8d2155f commit cbd6ba0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ class Application < Rails::Application
config.asset_host = ENV.fetch("ASSET_HOST", nil)

config.action_mailer.notify_settings = {
api_key: Rails.application.credentials.notify_api_key || "fake-test-api-key",
api_key: ENV["GOVUK_NOTIFY_API_KEY"] || "fake-test-api-key",
}

config.generators do |g|
Expand Down
2 changes: 2 additions & 0 deletions config/secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@
development:
secret_key_base: p647607dffea898a0f668fea448896db7ca3a0527f9e926db3ae629617cd64e16d2b4d357dcb312ed3f4ae5daaad98c589bb0ef1da4c251c0234b457d2e4a49f
link_checker_api_secret_token: stk3ffv3DvpKfHmsU4pbxsxc
notify_api_key: <%= ENV["GOVUK_NOTIFY_API_KEY"] %>

test:
secret_key_base: 073ab37a8631ad8caf644cb52662e222b95cac9a0ed4b8523f86819e50c544dfc49c12aa58090604b490235424fa77d66c10b016ecc706acf83193d2c6090318
link_checker_api_secret_token: stk3ffv3DvpKfHmsU4pbxsxc
notify_api_key: <%= ENV["GOVUK_NOTIFY_API_KEY"] %>

# Do not keep production secrets in the repository,
# instead read values from the environment.
Expand Down

0 comments on commit cbd6ba0

Please sign in to comment.