mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-12 14:00:17 +02:00
Merge branch 'apache-ssl-settings-in-local-py' into 'v3.x'
Added fix for "apache vs django" proxy headers to docs See merge request allianceauth/allianceauth!1440
This commit is contained in:
commit
e3b01ccbc9
@ -77,3 +77,19 @@ After acquiring SSL the config file needs to be adjusted. Add the following line
|
||||
RequestHeader set X-FORWARDED-PROTOCOL https
|
||||
RequestHeader set X-FORWARDED-SSL On
|
||||
```
|
||||
|
||||
### Known Issues
|
||||
|
||||
#### Apache2 vs. Django
|
||||
|
||||
For some versions of Apache2 you might have to tell the Django framework explicitly
|
||||
to use SSL, since the automatic detection doesn't work. SSL in general will work,
|
||||
but internally created URLs by Django might still be prefixed with just `http://`
|
||||
instead of `https://`, so it can't hurt to add these lines to
|
||||
`myauth/myauth/settings/local.py`.
|
||||
|
||||
```python
|
||||
# Setup support for proxy headers
|
||||
USE_X_FORWARDED_HOST = True
|
||||
SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTOCOL", "https")
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user