mirror of
https://github.com/ajurna/cbwebreader.git
synced 2025-12-06 06:17:17 +00:00
fix for URL's not working correctly behind a reverse proxy.
This commit is contained in:
@@ -14,4 +14,7 @@ DATABASE_URL = 'postgres://{user}:{password}@{hostname}:{port}/{database-name}'
|
|||||||
# for google recaptcha 2
|
# for google recaptcha 2
|
||||||
# DJANGO_CBREADER_USE_RECAPTCHA = True
|
# DJANGO_CBREADER_USE_RECAPTCHA = True
|
||||||
# DJANGO_RECAPTCHA_PRIVATE_KEY = ''
|
# DJANGO_RECAPTCHA_PRIVATE_KEY = ''
|
||||||
# DJANGO_RECAPTCHA_PUBLIC_KEY = ''
|
# DJANGO_RECAPTCHA_PUBLIC_KEY = ''
|
||||||
|
|
||||||
|
# Uncomment the following is using a reverse proxy.
|
||||||
|
# USE_X_FORWARDED_HOST=True
|
||||||
@@ -116,4 +116,8 @@ COMIC_DIR = "/media/comics"
|
|||||||
|
|
||||||
from .logger import LOGGING
|
from .logger import LOGGING
|
||||||
|
|
||||||
SILK_ENABLED = False
|
SILK_ENABLED = False
|
||||||
|
|
||||||
|
USE_X_FORWARDED_HOST = os.getenv('USE_X_FORWARDED_HOST', False) == 'True'
|
||||||
|
|
||||||
|
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||||
|
|||||||
Reference in New Issue
Block a user