-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Apache: set X-Forwarded-Proto header #3808
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This matches our current configuration - so should work fine.
However, I would suggest to update the SSL/TLS configuration (to a more modern config) in an other PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can confirm that adding that line solves #3780.
WebSocket-Config and Proxy-Configuration matches my apache config.
@rzo1 are you referring to this section?
I think indeed that would be important to keep updated, preferably with a comment next to it saying that it may needs to be updated over time and perhaps also with a link to some helpful resource on how to do it? I've never worked with Apache and won't try this myself. If you want, please open a PR! For reference, this is some related configuration I did of a proxy server accepting HTTPS traffic: https://github.com/jupyterhub/zero-to-jupyterhub-k8s/blob/38c694b3c9a0a53f846379fd418a4a718eb073b7/jupyterhub/templates/proxy/autohttps/_configmap-dynamic.yaml#L89-L108 |
Yes. A good reference is offered by Mozilla: https://ssl-config.mozilla.org/#server=apache&version=2.4.41&config=intermediate&openssl=1.1.1d&guideline=5.6 We could link it in the documentation (or in a comment). I can provide a PR after this one is merged. |
Ensure protocol is maintianed for forwarded requests to avoid breakage with newer juypterhub. See: jupyterhub/jupyterhub#3780 jupyterhub/jupyterhub#3808
This should ensure JupyterHub correctly compares the protocol used for the request (e.g. https) with the protocol from the referrer when checking for cross-site requests in the admin pages.
Closes #3780
@rzo1 @tobi45 would you mind checking this matches your configuration?
Preview of the rendered docs is at https://jupyterhub--3808.org.readthedocs.build/en/3808/reference/config-proxy.html#apache