added email settings to compose

This commit is contained in:
Alexander Karpov 2023-10-15 23:02:53 +03:00
parent f59df63dd4
commit f6f15d3979
3 changed files with 15 additions and 25 deletions

View File

@ -6,3 +6,6 @@ USE_DOCKER=no
EMAIL_HOST=127.0.0.1
EMAIL_PORT=1025
SENTRY_DSN=
EMAIL_PASSWORD=
EMAIL_USER=
EMAIL_USE_SSL=false

View File

@ -11,10 +11,6 @@ entryPoints:
entryPoint:
to: web-secure
web-secure:
# https
address: ":443"
flower:
address: ":5555"
@ -29,27 +25,6 @@ certificatesResolvers:
entryPoint: web
http:
routers:
web-secure-router:
rule: "Host(`akarpov.ru`) || Host(`www.akarpov.ru`)"
entryPoints:
- web-secure
middlewares:
- csrf
service: django
tls:
# https://docs.traefik.io/master/routing/routers/#certresolver
certResolver: letsencrypt
flower-secure-router:
rule: "Host(`akarpov.ru`)"
entryPoints:
- flower
service: flower
tls:
# https://docs.traefik.io/master/routing/routers/#certresolver
certResolver: letsencrypt
middlewares:
csrf:
# https://docs.traefik.io/master/middlewares/headers/#hostsproxyheaders

View File

@ -307,6 +307,18 @@
)
# https://docs.djangoproject.com/en/dev/ref/settings/#email-timeout
EMAIL_TIMEOUT = 5
EMAIL_HOST_PASSWORD = env(
"EMAIL_PASSWORD",
default="",
)
EMAIL_HOST_USER = env(
"EMAIL_USER",
default="",
)
EMAIL_USE_SSL = env(
"EMAIL_USE_SSL",
default=False,
)
# ADMIN
# ------------------------------------------------------------------------------