闪亮的应用程序变灰 - 通过 ssl 的 nginx 代理

Shiny apps greyed out - nginx proxy over ssl

我正在尝试通过 https 并使用 auth0 登录来保护对通过我们的网络服务器提供的一些闪亮应用程序的访问。 闪亮的应用程序不能通过 https 运行,尽管它们可以通过 http 运行。

系统信息:

console.log link https://gist.github.com/vasantm/4339b248143fa6b3f8c4d0f1773f33e9

nginx.conf link https://gist.github.com/vasantm/d98c8ae9de8a8667d9d2e6e59945de62

闪亮-server.conf link https://gist.github.com/vasantm/43a94acd7b9fcf573cdea2a200218425.

我使用这个参考来配置 nginx 和 shiny Running Shiny Server with a Proxy

任何通过 SSL 获得闪亮工作的线索?

即使在修正拼写错误并使用更新的配置后, 我的应用程序变灰了。 这是更新后的 console.log 我仍然会看到灰色的应用程序。然后我取消注释上面配置的突出显示部分,但仍然有错误。

这是最新的 console.log

与 'wss://kristallab.bwh.harvard.edu/sample-apps/rmd/sockjs/n=DDUjuaZmdQBFbAe8Ni/345/w1oqw659/websocket' 的 WebSocket 连接失败:WebSocket 握手期间出错:意外的响应代码:400WrappedWebSocket @ VM220:35

VM221:35 WebSocket 连接到 'wss://kristallab.bwh.harvard.edu/sample-apps/hello/sockjs/n=NCXw2RGlge88iybomV/805/n61pj5fb/websocket' 失败:WebSocket 握手期间出错:意外的响应代码:400WrappedWebSocket @ VM221:35 shiny-server-client.min.js:formatted:935Wed Jun 07 2017 18:08:39 GMT-0400 (EDT) [INF]: 错误: WebSocket 关闭 shiny-server-client.min.js:formatted:935Wed Jun 07 2017 18:08:39 GMT-0400 (EDT) [INF]: 连接关闭。信息:{"isTrusted":false} shiny-server-client.min.js:formatted:265Wed Jun 07 2017 18:08:39 GMT-0400 (EDT) [DBG]: SockJS 连接关闭 shiny-server-client.min.js:formatted:265Wed Jun 07 2017 18:08:39 GMT-0400 (EDT) [DBG]: 频道 0 已关闭 shiny-server-client.min.js:formatted:265Wed Jun 07 2017 18:08:39 GMT-0400 (EDT) [DBG]: 删除通道 0, 0 离开 shiny-server-client.min.js:1 Wed Jun 07 2017 18:08:39 GMT-0400 (EDT) [INF]: 错误: WebSocket 关闭 shiny-server-client.min.js:1 Wed Jun 07 2017 18:08:39 GMT-0400 (EDT) [INF]: 连接关闭。信息:{"isTrusted":false} shiny-server-client.min.js:1 Wed Jun 07 2017 18:08:39 GMT-0400 (EDT) [DBG]: SockJS 连接关闭 shiny-server-client.min.js:1 Wed Jun 07 2017 18:08:39 GMT-0400 (EDT) [DBG]: Channel 0 is closed shiny-server-client.min.js:1 2017 年 6 月 7 日星期三 18:08:39 GMT-0400 (EDT) [DBG]:删除频道 0,还剩 0

截图如下

尝试将这些行添加到您闪亮的 conf 文件中:

sanitize_errors off;disable_protocols xdr-streaming xhr-streaming iframe-eventsource iframe-htmlfile;