简体   繁体   English

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

[英]Shiny apps greyed out - nginx proxy over ssl

I am trying to secure access to some shiny apps being served over our web server via https and using auth0 for login.我正在尝试通过 https 和使用 auth0 登录来保护对通过我们的网络服务器提供的一些闪亮应用程序的访问。 Shiny apps don't work over https, though they work over http.闪亮的应用程序不能通过 https 工作,尽管它们可以通过 http 工作。

System info:系统信息:

  • nginx/1.10.2 nginx/1.10.2
  • Shiny Server v1.5.3.838闪亮服务器 v1.5.3.838
  • Node.js v6.10.0 Node.js v6.10.0
  • CentOS Linux release 7.3.1611 (Core) CentOS Linux 版本 7.3.1611(核心)

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

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

shiny-server.conf link https://gist.github.com/vasantm/43a94acd7b9fcf573cdea2a200218425 . shiny-server.conf 链接https://gist.github.com/vasantm/43a94acd7b9fcf573cdea2a200218425

I used this reference to configure nginx and shiny Running Shiny Server with a Proxy我使用这个参考来配置 nginx 和闪亮的 Running Shiny Server with a Proxy

Any clues to get shiny working over SSL?有什么线索可以通过 SSL 获得闪亮的工作吗?

Even after fixing typos and using the updated config, I get greyed out apps.即使在修复错别字并使用更新的配置之后,我的应用程序也会变灰。 Here's the updated console.log I still get greyed out apps.这是更新后的 console.log,我的应用程序仍然显示为灰色。 I then uncommented the highlighted part of the config above and still got errors.然后我取消了上面配置中突出显示的部分的注释,但仍然出现错误。

here's the latest console.log这是最新的 console.log

WebSocket connection to 'wss://kristallab.bwh.harvard.edu/sample-apps/rmd/ sockjs /n=DDUjuaZmdQBFbAe8Ni/345/w1oqw659/websocket' failed: Error during WebSocket handshake: Unexpected response code: 400WrappedWebSocket @ VM220:35 WebSocket 连接到“wss: //kristallab.bwh.harvard.edu/sample-apps/rmd/sockjs /n=DDUjuaZmdQBFbAe8Ni/345/w1oqw659/websocket”失败:WebSocket 握手期间出错:意外响应代码:400WrappedWebSocket @ VM220:35

VM221:35 WebSocket connection to 'wss://kristallab.bwh.harvard.edu/sample-apps/hello/ sockjs /n=NCXw2RGlge88iybomV/805/n61pj5fb/websocket' failed: Error during WebSocket handshake: Unexpected response code: 400WrappedWebSocket @ VM221:35 shiny-server-client.min.js:formatted:935Wed Jun 07 2017 18:08:39 GMT-0400 (EDT) [INF]: Error: WebSocket closed shiny-server-client.min.js:formatted:935Wed Jun 07 2017 18:08:39 GMT-0400 (EDT) [INF]: Connection closed. 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]:连接关闭。 Info: {"isTrusted":false} shiny-server-client.min.js:formatted:265Wed Jun 07 2017 18:08:39 GMT-0400 (EDT) [DBG]: SockJS connection closed shiny-server-client.min.js:formatted:265Wed Jun 07 2017 18:08:39 GMT-0400 (EDT) [DBG]: Channel 0 is closed shiny-server-client.min.js:formatted:265Wed Jun 07 2017 18:08:39 GMT-0400 (EDT) [DBG]: Removed channel 0, 0 left shiny-server-client.min.js:1 Wed Jun 07 2017 18:08:39 GMT-0400 (EDT) [INF]: Error: WebSocket closed shiny-server-client.min.js:1 Wed Jun 07 2017 18:08:39 GMT-0400 (EDT) [INF]: Connection closed.信息:{"isTrusted":false} shiny-server-client.min.js:formatted:265Wed Jun 07 2017 18:08:39 GMT-0400 (EDT) [DBG]: SockJS connection closed shiny-server-client.min .js:formatted:265Wed Jun 07 2017 18:08:39 GMT-0400 (EDT) [DBG]: Channel 0 is closed shiny-server-client.min.js:formatted:265Wed Jun 07 2017 18:08:39 GMT -0400 (EDT) [DBG]: 删除了通道 0, 0 left shiny-server-client.min.js:1 Wed Jun 07 2017 18:08:39 GMT-0400 (EDT) [INF]: Error: WebSocket closes shiny -server-client.min.js:1 Wed Jun 07 2017 18:08:39 GMT-0400 (EDT) [INF]: 连接关闭。 Info: {"isTrusted":false} shiny-server-client.min.js:1 Wed Jun 07 2017 18:08:39 GMT-0400 (EDT) [DBG]: SockJS connection closed 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 Wed Jun 07 2017 18:08:39 GMT-0400 (EDT) [DBG]: Removed channel 0, 0 left信息:{"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 2017 年 6 月 7 日星期三 18:08:39 GMT-0400 (EDT) [DBG]: 频道 0 已关闭闪亮服务器客户端.min.js:1 2017 年 6 月 7 日星期三 18:08:39 GMT-0400 ( EDT) [DBG]: 移除通道 0, 0 左

Screenshots shown below截图如下闪亮的应用程序在 https 上显示为灰色 闪亮的应用程序在 http 上运行良好

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

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM