mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 08:59:17 +02:00
Fix #1085: Make URL-building logic more resilient against reverse proxy misconfiguration
This commit is contained in:
parent
e981f005dc
commit
e8efa4213a
5 changed files with 96 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
|||
from django.apps import AppConfig, apps
|
||||
|
||||
from . import mutations
|
||||
from . import utils
|
||||
|
||||
|
||||
class CommonConfig(AppConfig):
|
||||
|
@ -11,3 +12,4 @@ class CommonConfig(AppConfig):
|
|||
|
||||
app_names = [app.name for app in apps.app_configs.values()]
|
||||
mutations.registry.autodiscover(app_names)
|
||||
utils.monkey_patch_request_build_absolute_uri()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue