Hi Morten,
On 14/04/2026 07:58, Morten Brekkevold via Nav-users wrote:
It does seem you will need something like these Django config settings in order to make this work:
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https') CSRF_TRUSTED_ORIGINS = ['https://nav.example.com'] # your actual outward hostname
As you've noticed, these are not exposed in any NAV configuration file, so your only option is to use NAV's "local Django settings" mechanism to add your custom Django settings:
https://nav.readthedocs.io/en/latest/hacking/extending-nav-locally.html#djan...
That was exactly what I needed. Got it working behind haproxy now, thank you!
.einar