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.
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 outsideproxy
. I spent weeks not noticing this small but significant difference. Hope it helps someone in the future like me.