ssl - 在静态文件模板的 url 中使用 https 而不是 http

标签 ssl fiware fiware-wirecloud

目前我们使用的是默认的wirecloud模板。但是自从我们启用了 SSL 并将每个请求重定向到 ssl 端口后,我很乐意将静态资源的 url 更改为以 https 开头,以避免出现混合内容警告。

有没有一种简单的方法可以将 url 更改为始终以 hhttps 而不是 http 开头?

最佳答案

这是自动完成的,除非 WireCloud 在代理后面(因此请求使用 HTTP 而不是 HTTPS)。在这些情况下,您可以通过将此行添加到 settings.py 文件中来强制 WireCloud 使用 https 链接:

FORCE_PROTO = "https"

查看此 link了解更多信息。

关于ssl - 在静态文件模板的 url 中使用 https 而不是 http,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35455998/

相关文章:

cocoa-touch - NSStream SSL 连接问题

mongodb - FIWARE Cygnus 在空间使用方面有任何问题吗?

video-streaming - 如何在 kurento 媒体服务器中进行 rtmp 流式传输?

javascript - 在 Wirecloud 中使用 jQuery 给出 "Uncaught ReferenceError: jQuery is not defined"

javascript - Wirecloud/FI-ware 小部件 : Exception catched input endpoint

ssl - 更改 Magento 1 urls,http 到 https 错误混合内容

java - SSLSocket 忽略域不匹配

java - 简单的 Java OAuth 示例

Fiware - Orion Context Broker 订阅未发送到 STH, "conditions was supposed to be an array"

javascript - 虽然实现了回调函数,但wirecloud/fiware "Not registered callback"