Fix #1085: Make URL-building logic more resilient against reverse proxy misconfiguration

This commit is contained in:
Agate 2020-05-04 12:02:08 +02:00
parent e981f005dc
commit e8efa4213a
No known key found for this signature in database
GPG key ID: 6B501DFD73514E14
5 changed files with 96 additions and 0 deletions

View file

@ -1302,3 +1302,10 @@ PODCASTS_RSS_FEED_MAX_ITEMS = env.int("PODCASTS_RSS_FEED_MAX_ITEMS", default=250
"""
Maximum number of RSS items to load in each podcast feed.
"""
IGNORE_FORWARDED_HOST_AND_PROTO = env.bool(
"IGNORE_FORWARDED_HOST_AND_PROTO", default=True
)
"""
Use :attr:`FUNKWHALE_HOSTNAME` and :attr:`FUNKWHALE_PROTOCOL ` instead of request header.
"""