Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about X-Forwarded-Proto #957

Open
Alon-Hen-LS opened this issue Nov 7, 2024 · 1 comment
Open

Question about X-Forwarded-Proto #957

Alon-Hen-LS opened this issue Nov 7, 2024 · 1 comment

Comments

@Alon-Hen-LS
Copy link

Hey all, im using nginx to terminate tls and sending through nginx all the possible forwarded-for headers

From the nginx i proxy pass to fabio on http,

My question is, will fabio change the forwarded-for-proto to http? Since it received the tarffic through http?

Since keycloak expects it to be found as https...
(It has the option to recognize that tls was terminated at reverse proxy level, but im afraid fabio might be hondering it?)

Thanks in advance!

@aaronhurt
Copy link
Member

aaronhurt commented Nov 7, 2024

You can follow the full logic of the forwarded headers here: https://github.com/fabiolb/fabio/blob/master/proxy/http_headers.go#L36
Test cases with examples here: https://github.com/fabiolb/fabio/blob/master/proxy/http_headers_test.go

Additionally, Fabio is capable of handling TLS and has flexible configuration for TLS options including ciphers: https://fabiolb.net/ref/proxy.addr/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants