Skip to content

Commit

Permalink
Merge pull request #172 from hltcoe/email_behind_proxy
Browse files Browse the repository at this point in the history
Fixes #82 Email behind proxy
  • Loading branch information
cash committed Feb 19, 2022
2 parents a807a08 + f00b71c commit abb7333
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/ADMINISTRATION.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,17 @@ be able to view the site at http://localhost/ or whatever the appropriate host n
Instructions for using Gunicorn with nginx are found on its `deploy page`_.
You will still need to configure nginx to serve the static files as we did with Apache.

Emails behind proxy
```````````````````
If your site has been configured for emails, the emails for password resets
will use the localhost URL rather than the external URL.
To configure this, set this variable in the local_settings.py file::

USE_X_FORWARDED_HOST = True

This will cause Django to pick up the HTTP_X_FORWARDED_HOST header
when populating the protocol, domain, and site_name for the emails.

Production Database Configuration
---------------------------------

Expand Down

0 comments on commit abb7333

Please sign in to comment.