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