Skip to content

HTTPS traffic only; Redirect to HTTP to HTTPS #7

Description

@greenspray

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions