peering-manager / docker

🐳 Docker Image of Peering Manager
Apache License 2.0
9 stars 12 forks source link

Fix API URLs generated by Django REST when running behind a proxy #6

Closed rlanyi closed 4 years ago

rlanyi commented 4 years ago

Django REST Framework seems to ignore X-Forwarded-Host header so a forced Host header has been added to nginx.conf. This fixed the behavior where API URLs were always generated with the host http://peering-manager:8001/ when running with Docker. (E.g. on /api/ URL.)