Answered my own question, should have checked [the docs](https://docs.djangoproject.com/en/dev/ref/settings/#std:setting-USE_X_FORWARDED_HOST) first. :)