[ENV] Add Mailjet conf

This commit is contained in:
Mathieu Magnin 2018-03-13 18:16:41 +01:00 committed by Paul Chavard
parent d37958d1ae
commit 5ff869e1bc
3 changed files with 8 additions and 1 deletions

1
.gitignore vendored
View file

@ -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/**/*

View 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

View file

@ -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