-
We are experiencing some weird issue with NetBox running on Docker not generating HTTPS URLs. Version we use: I have changed the URL scheme in the configuration file to: NetBox does read this file as the BANNER_TOP variable is also changed and I can see the banner changed in the UI. Our setup is as follows: Request are going through the UI on the secure port with no poblems.
I have tested with the following Docker versions: NetBox env file (sensitive information removed):
None of the production servers work properly. We have a few Dev and Staging servers, but I couldn't reproduce the problem on any of those. I changed the Target Group as well, but didn't help. The problem is with the Production servers. An identical setup in Dev produces this:
Has anyone seen such an issue before? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You'll probably get more of a response over on the netbox-docker project. |
Beta Was this translation helpful? Give feedback.
-
Is this "AWS load balancer" a TCP load balancer, or a HTTP proxy? If it's a TCP proxy: Netbox has no way of knowing that the incoming request was https, nor will it know that it was on port 443 given that's the default port and so it won't appear in the If it's a HTTP proxy: it needs to add |
Beta Was this translation helpful? Give feedback.
Is this "AWS load balancer" a TCP load balancer, or a HTTP proxy?
If it's a TCP proxy: Netbox has no way of knowing that the incoming request was https, nor will it know that it was on port 443 given that's the default port and so it won't appear in the
Host:
header. If you're using the nginx frontend in the netbox docker, then you ought to be able to configure it to add a staticX-Forwarded-Host
andX-Forwarded-Proto
header to every request.If it's a HTTP proxy: it needs to add
X-Forwarded-Proto
for Netbox to know that it's HTTPS, and preferablyX-Forwarded-Host
too (although if the proxy preserves the originalHost:
header rather than putting the backend target host in there, then that…