Compare commits

...

1 Commits
main ... mail

Author SHA1 Message Date
knoflook bdea86f282
add mail support 2022-09-29 19:29:02 +02:00
2 changed files with 16 additions and 5 deletions

View File

@ -3,14 +3,19 @@ TYPE=karrot
DOMAIN=karrot.example.com
LETS_ENCRYPT_ENV=production
# postal,smtp,sonsole
EMAIL_BACKEND=console
# only set those when using SMTP
#EMAIL_FROM=
#EMAIL_PASSWORD=
#SMTP_HOST=
#SMTP_USE_SSL=true
#SMTP_PORT=465
# account id for maxmind (for GeoIP)
MAXMIND_ACCOUNT_ID=
# License key for maxmind
MAXMIND_LICENSE_KEY=
# if I set this it fails with:
# TypeError: SelectorEventLoop required, instead got: <uvloop.Loop running=False closed=False debug=False>
#LISTEN_CONCURRENCY=4
SECRET_DB_PASSWORD_VERSION=v1

View File

@ -46,6 +46,12 @@ services:
environment:
- MAXMIND_ACCOUNT_ID
- MAXMIND_LICENSE_KEY
- EMAIL_FROM
- SMTP_PASSWORD
- SMTP_HOST
- EMAIL_BACKEND
- SMTP_PORT
- SMTP_USE_SSL
- SITE_URL=http://localhost:8000
- LISTEN_HOST=0.0.0.0
- LISTEN_SERVER=uvicorn
@ -135,7 +141,7 @@ services:
- POSTGRES_PASSWORD=karrot
- POSTGRES_USER=karrot
- POSTGRES_DB=karrot
secrets:
db_password: