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

HTTPS traffic only; Redirect to HTTP to HTTPS #7

Open
greenspray opened this issue Dec 23, 2019 · 0 comments
Open

HTTPS traffic only; Redirect to HTTP to HTTPS #7

greenspray opened this issue Dec 23, 2019 · 0 comments

Comments

@greenspray
Copy link
Contributor

greenspray commented Dec 23, 2019

The problem
Due to Nginx HTTPS redirection, there may be an issue for people who want to embed apps in the iframe.

Why?
With the Nginx configuration in this repo with LetsEncrypt generated SSL certificate, the shinyproxy doesn't detect that the traffic is coming from HTTPs endpoint and continuously redirects to HTTP. This is problematic for Iframe as it doesn't allow redirection to insecure HTTP.

Solution
Use the Nginx config listed in here and set useForwardHeaders as they suggest. Note that the server has to be outside proxy. I spent weeks not noticing this small but significant difference. Hope it helps someone in the future like me.

proxy:
  [...]

server:
  useForwardHeaders: true

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

No branches or pull requests

1 participant