Skip to content

Commit

Permalink
chore(mailing): enforce console mailer while keeping smtp secrets in
Browse files Browse the repository at this point in the history
  • Loading branch information
thejoeejoee committed Nov 21, 2023
1 parent 672a49c commit d4918d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions charts/templates/web-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ metadata:
data:
DJANGO_CONFIGURATION: "Production"
DJANGO_ROOT_DOMAIN: {{ .Values.ingress.host | quote }}
DJANGO_MAILER_PRIMARY_BACKEND: "django.core.mail.backends.console.EmailBackend"
2 changes: 1 addition & 1 deletion fiesta/fiesta/settings/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def ALLOWED_HOSTS(self):
return [f".{self.ROOT_DOMAIN}"]

# overwritten by production mixins
EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend"
EMAIL_BACKEND = Value(default="django.core.mail.backends.console.EmailBackend")

def DEFAULT_FROM_EMAIL(self):
return f"Fiesta+ <noreply@{self.ROOT_DOMAIN}>"
Expand Down

0 comments on commit d4918d0

Please sign in to comment.