Replies: 1 comment 1 reply
-
This is documented with Nginx Unit here: https://unit.nginx.org/configuration/#settings with the setting |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm not exactly sure where the best place to document this is. But I've learned the long way that the reverse proxy webserver cannot send HTTP headers with _. The webserver in the docker image ignores/drops them. The reverse proxy passing the auth header needs to send http headers with - instead.
The headers are case insensitive but it is a bit confusing since all of the netbox config matches the header names with _.
For example I set REMOTE_AUTH_HEADER = 'HTTP_NETBOX_USER' and configured the reverse proxy to send header NETBOX_USER and it didn't work. After some time troubleshooting I learned that unit was dropping this header. I changed the reverse proxy to set the header NETBOX-USER and unit could see the header and remote auth started working.
I think this behaviour could be helpful to mention somewhere in the netbox-docker documentation.
Beta Was this translation helpful? Give feedback.
All reactions