Skip to content

Commit

Permalink
[feature] Added default EMAIL_TIMEOUT #257
Browse files Browse the repository at this point in the history
Closes #257
  • Loading branch information
Aryamanz29 committed Mar 22, 2023
1 parent a6fd4f6 commit efbda73
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
# EMAIL_HOST_PASSWORD =
# EMAIL_PORT =
# EMAIL_USE_TLS =
# EMAIL_TIMEOUT =
6 changes: 6 additions & 0 deletions docs/ENV.md
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,12 @@ Any OpenWISP Configuration of type `string`. `int`, `bool` or `json` is supporte
- **Valid Values:** True | False
- **Default:** False

### `EMAIL_TIMEOUT`

- **Explanation:** Specifies a timeout in seconds used by Django for blocking operations like the connection attempt.
- **Valid Values:** INTEGER
- **Default:** 10

### `POSTFIX_ALLOWED_SENDER_DOMAINS`

- **Explanation:** Due to in-built spam protection in Postfix you will need to specify sender domains.
Expand Down
1 change: 1 addition & 0 deletions images/common/openwisp/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@
EMAIL_HOST_USER = os.environ['EMAIL_HOST_USER']
EMAIL_HOST_PASSWORD = os.environ['EMAIL_HOST_PASSWORD']
EMAIL_USE_TLS = env_bool(os.environ['EMAIL_HOST_TLS'])
EMAIL_TIMEOUT = os.environ['EMAIL_TIMEOUT']

# Logging
# http://docs.djangoproject.com/en/dev/topics/logging
Expand Down
1 change: 1 addition & 0 deletions images/openwisp_base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ ENV DASHBOARD_APP_SERVICE=dashboard \
EMAIL_HOST_USER="" \
EMAIL_HOST_PASSWORD="" \
EMAIL_HOST_TLS=False \
EMAIL_TIMEOUT=10 \
[email protected] \
DJANGO_LOG_LEVEL=ERROR \
DJANGO_LANGUAGE_CODE=en-gb \
Expand Down

0 comments on commit efbda73

Please sign in to comment.