Browse Source

Add From: email setting to awsdeploy.yml

pull/841/head
Maksym Komar 4 years ago
parent
commit
86dd316a46
2 changed files with 10 additions and 0 deletions
  1. 1
      app/app/settings.py
  2. 9
      awsdeploy.yml

1
app/app/settings.py

@ -314,6 +314,7 @@ EMAIL_HOST = env('EMAIL_HOST', None)
EMAIL_HOST_USER = env('EMAIL_HOST_USER', None)
EMAIL_HOST_PASSWORD = env('EMAIL_HOST_PASSWORD', None)
EMAIL_PORT = env.int('EMAIL_PORT', 587)
DEFAULT_FROM_EMAIL = env('DEFAULT_FROM_EMAIL', 'webmaster@localhost')
if not EMAIL_HOST:
EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'

9
awsdeploy.yml

@ -99,6 +99,10 @@ Resources:
- !Ref WorkersCount
- |+
- sudo tee -a /env.list <<< DEFAULT_FROM_EMAIL=
- !Ref FromEmail
- |+
- |
sudo docker pull doccano/doccano:latest
- |
@ -286,6 +290,11 @@ Parameters:
MinLength: 1
MaxLength: 3
AllowedPattern: '^\d+$'
FromEmail:
Default: webmaster@localhost
Description: The email used to send from singup messages
Type: String
AllowedPattern: '^[\x20-\x45]?[\w-\+]+(\.[\w]+)*@[\w-]+(\.[\w]+)*(\.[a-z]{2,})?$'
Outputs:
PublicDNS:
Value: !GetAtt

Loading…
Cancel
Save