Skip to content

NetBox doesn't generate HTTPS URLs #6862

Answered by candlerb
Laz80UK asked this question in Q&A
Discussion options

You must be logged in to vote

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 static X-Forwarded-Host and X-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 preferably X-Forwarded-Host too (although if the proxy preserves the original Host: header rather than putting the backend target host in there, then that…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Laz80UK
Comment options

Answer selected by Laz80UK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants