I'm trying to set up Hue with SSL, but I want to use our frontend HTTPS proxy, rather than Hue's built in HTTPS support. This works fine, except that redirects generated by Hue use http:// URLs. This makes sense, since Hue sees the request from the proxy as a plain ol HTTP request. Even so, this is not what I want!
Is it possible to make Hue force HTTPS, even if it isn't configured to service HTTPS itself?
Yes it's possible. You need to make sure the proxy is adding a "X-Forwarded-Proto: https" header. Then Hue will return all urls with https://. See this for more details:
https://docs.djangoproject. com/en/1.7/ref/settings/#std: setting-SECURE_PROXY_SSL_ HEADER
Let us know if you run into any more trouble,https://docs.djangoproject.
Ah, perfect, thanks. I need to upgrade then. I'm still on CDH 5.0.
댓글 없음:
댓글 쓰기