目前我想在服务器上部署我的金字塔应用程序。因此我在WSGI面前使用NGINX。在NGINX中配置SSL没有问题,但对于WSGI,它是。
因为我有从80到443的端口转发,所以用户收到:
Mixed Content: The page at 'https://example.com' was loaded over HTTPS, but requested an insecure stylesheet 'http://example.com/static/css/bootstrap-3.3.5.min.css'. This request has been blocked; the content must be served over HTTPS.
如何为WSGI启用SSL?
THX
答案 0 :(得分:0)
感谢I can not connect to https waitress wsgi server我找到了解决方案。只需将“url_scheme = https”添加到您的production.ini / development.ini。