-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-dotenv
62 lines (55 loc) · 2.21 KB
/
example-dotenv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# This project uses a .env file for basic configuration and passing secrets to
# the AS Email Service.
#
# Naturally due to the sensitive nature of this file access to it must be
# carefully controlled.
#
# This is a get-the-thing-off-the-ground setup.
#
# The following env. vars are required for the service to function.
#
DJANGO_SECRET_KEY=<your sites secret key here>
EMAIL_BACKEND=<backend to use>
ANYMAIL="key1=value1,key2=value2"
SITE_NAME=your_email_server.your.domain
DEFAULT_FROM_EMAIL = "[email protected]"
SERVER_EMAIL = "[email protected]"
# When a `Server` is created, we have the option of automatically creating a
# bunch of expected email service accounts for that server. This does not need
# to be specified unless you want to change the list of accounts being
# created. What is listed below is the default set.
#
EMAIL_SERVICE_ACCOUNTS="admin,abuse,postmaster,security,hostmaster,webmaster,support,www,noc"
# If you want the above service accounts to be created they need to be owned by
# a user. If this user is not specified then they are not created. Also if this
# user does not exist when the Server instance is created, they are not
# created. The default does not need to be set, we use `admin` for the default.
#
EMAIL_SERVICE_ACCOUNTS_OWNER=admin
# Key/value pairs for your configured servers at postmark. The key is the name
# of the server, they key is the API key for that server.
#
EMAIL_SERVER_TOKENS="example.com=foo,example.org=baz"
# All of these parts are setup based on the default docker-compose file that
# mounts file values under /mnt/db, /mnt/spool, /mnt/mail_dirs/, /mnt/ssl
#
DATABASE_URL=sqlite:////mnt/db/as_email_service.db
EMAIL_SPOOL_DIR=/mnt/spool
MAIL_DIRS=/mnt/mail_dirs
HOST_SPOOL_ROOT=/mnt/spool
HOST_MAIL_ROOT=/mnt/mail_dirs
HOST_DB_DIR=/mnt/dbs
HOST_SSL_DIR=/mnt/ssl
# What docker tag to pull and run
#
RELEASE_VERSION=latest
# REDIS is used both for the cache and for huey as well as some other transient
# data. By default we presume running redis as part of the docker compose and
# its hostname is "redis"
#
REDIS_SERVER=redis
CACHE_URL=redis://redis:6379
# If you have a sentry project setup
#
SENTRY_DSN=https://[email protected]/0
SENTRY_TRACES_SAMPLE_RATE=0.2