[ENV] Add Mailjet conf
This commit is contained in:
parent
d37958d1ae
commit
5ff869e1bc
3 changed files with 8 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -28,7 +28,6 @@ config/initializers/super_admin.rb
|
|||
doc/*.svg
|
||||
config/france_connect.yml
|
||||
config/github_secrets.yml
|
||||
config/initializers/mailjet.rb
|
||||
config/fog_credentials.yml
|
||||
uploads/*
|
||||
coverage/**/*
|
||||
|
|
5
config/initializers/mailjet.rb
Normal file
5
config/initializers/mailjet.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
Mailjet.configure do |config|
|
||||
config.api_key = Rails.application.secrets.mailjet[:api_key]
|
||||
config.secret_key = Rails.application.secrets.mailjet[:secret_key]
|
||||
config.default_from = CONTACT_EMAIL
|
||||
end
|
|
@ -25,6 +25,9 @@ defaults: &defaults
|
|||
github:
|
||||
client_id: <%= ENV['GITHUB_CLIENT_ID'] %>
|
||||
client_secret: <%= ENV['GITHUB_CLIENT_SECRET'] %>
|
||||
mailjet:
|
||||
api_key: <%= ENV['MAILJET_API_KEY'] %>
|
||||
secret_key: <%= ENV['MAILJET_SECRET_KEY'] %>
|
||||
|
||||
development:
|
||||
<<: *defaults
|
||||
|
|
Loading…
Reference in a new issue