Browse Source

Add sendgrid support

added api sendgrid key on .env file

Depends-On: https://review.openstack.org/#/c/651794
Change-Id: I084d5f66138f15cf5d9b215a1cb9a304e70e4957
smarcet 1 week ago
parent
commit
18261412e5
2 changed files with 2 additions and 0 deletions
  1. 1
    0
      manifests/init.pp
  2. 1
    0
      templates/.env.erb

+ 1
- 0
manifests/init.pp View File

@@ -57,6 +57,7 @@ class openstackid (
57 57
   $app_version = '',
58 58
   $app_timezone = 'UTC',
59 59
   $email_driver = 'mail',
60
+  $email_send_grid_api_key = '',
60 61
   $email_smtp_server = 'smtp.mailgun.org',
61 62
   $email_smtp_server_port = 587,
62 63
   $email_smtp_server_user = '',

+ 1
- 0
templates/.env.erb View File

@@ -46,6 +46,7 @@ MAIL_HOST=<%= @email_smtp_server %>
46 46
 MAIL_PORT=<%= @email_smtp_server_port %>
47 47
 MAIL_USERNAME="<%= @email_smtp_server_user %>"
48 48
 MAIL_PASSWORD="<%= @email_smtp_server_password %>"
49
+SENDGRID_API_KEY=<%= @email_send_grid_api_key %>
49 50
 
50 51
 CORS_ALLOWED_HEADERS="origin, content-type, accept, authorization, x-requested-with"
51 52
 CORS_ALLOWED_METHODS="GET, POST, OPTIONS, PUT, DELETE"

Loading…
Cancel
Save