【问题标题】:Shiny apps greyed out - nginx proxy over ssl闪亮的应用程序变灰 - ssl 上的 nginx 代理
【发布时间】:2017-11-07 22:21:20
【问题描述】:

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

系统信息:

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

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

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

shiny-server.conf 链接 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 Wed Jun 07 2017 18:08:39 GMT-0400 (EDT) [DBG]: 删除频道 0, 0 离开

截图如下

【问题讨论】:

  • 更新的配置文件包含在 gist 中。

标签: r ssl nginx shiny-server


【解决方案1】:

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

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

【讨论】:

  • 工作就像一个魅力。谢谢。你能告诉这个问题的原因是什么吗?
  • 100 次赞,工作就像一个魅力!还可以将这些设置添加到 docker 映像中:github.com/hemberg-lab/scmap-shiny/blob/…
  • 类似的问题:没有 nginx,但是 Apache 配置中有 ProxyPass 和 ProxyPassReverse。仅在某些版本的 macOS 作为客户端时才会出现灰显:10.13.4 和 10.13.5。早期版本以及 10.13.6 beta 版本或在任何其他操作系统下都可以正常工作。网络浏览器的选择与问题无关。我将上面的行添加到我的配置文件中,它有所帮助。谢谢!
猜你喜欢
  • 2019-07-02
  • 1970-01-01
  • 2014-10-29
  • 2022-08-16
  • 2013-11-24
  • 1970-01-01
  • 2020-06-16
  • 2016-05-21
  • 1970-01-01
相关资源
最近更新 更多