Skip to content
Snippets Groups Projects
Verified Commit f30482a3 authored by Antoine R. Dumont's avatar Antoine R. Dumont
Browse files

swh.deposit.production: Add support for proxy headers in django

Related T806
parent 51aa7e23
No related branches found
Tags v0.0.25
No related merge requests found
......@@ -4,8 +4,14 @@
# See top-level LICENSE file for more information
from .common import * # noqa
from .common import ALLOWED_HOSTS
from swh.core import config
ALLOWED_HOSTS += ['deposit.softwareheritage.org']
# Setup support for proxy headers
USE_X_FORWARDED_HOST = True
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
DEBUG = False
# Database
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment