Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

Commit

Permalink
Properly handle proxied HTTPS headers
Browse files Browse the repository at this point in the history
  • Loading branch information
ipmb committed May 15, 2018
1 parent 03d7fc1 commit f0963d9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
0.9.3 (unreleased)
------------------

- Nothing changed yet.
- Adds proper SSL handling


0.9.2 (2018-05-15)
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ pip install saltdash
webserver is included and can be started with `saltdash serve`. If Docker is
more your speed, there's a `Dockerfile` as well.

⚠️ The built-in webserver does not handle HTTPS. The default settings assume the
app is deployed behind a proxy which is terminating HTTPS connections and
properly handling headers. If this is not the case, [you should read this](https://docs.djangoproject.com/en/2.0/ref/settings/#secure-proxy-ssl-header) and take appropriate actions.

### Configuration

Configuration can be done via environment variables, a file, or a combination
Expand Down
1 change: 1 addition & 0 deletions saltdash/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
DEBUG = config.DEBUG

ALLOWED_HOSTS = config.ALLOWED_HOSTS
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')


# Application definition
Expand Down

0 comments on commit f0963d9

Please sign in to comment.