作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
正如 Kinto 文档中所写,我可以 specify a custom configuration这边走:docker run --env-file ./kinto.env -p 8888:8888 kinto/kinto-server
.
另外,看来我可以suggest an http scheme使用 http_scheme
属性(property)。
现在,如果我:
KINTO_HTTP_SCHEME=https
在 kinto.env
文件; url
属性(property)
.env
文件被读取。该链接是可点击的,但如果我点击它,我仍然会得到一个空白页面。
d Content: The page at 'https://example.com/' was loaded over HTTPS, but requested an insecure resource 'http://example.com:8888/v1/'. This request has been blocked; the content must be served over HTTPS.
Fetch API cannot load http://example.com:8888/v1/. Failed to start.
Error: HTTP 0; TypeError: Failed to fetch(…)
最佳答案
这取决于您如何运行 Kinto。 pserve
默认情况下使用女服务员服务器,它没有任何 HTTPS 支持。
通过在 .ini 文件中指定替代服务器,可以使用替代服务器(例如 gunicorn 或 uwsgi)来替代 pserve。
以下是指向正确文档的指针:
[server:main]
use = egg:gunicorn
host = 0.0.0.0
port = 5900
workers = 1
worker_class = gevent
certfile=~/ssl/server.crt
keyfile=~/ssl/server.key
ssl_version=3
关于https - 如何通过 docker 容器中的 https 服务 Kinto?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36332972/
为什么是Kinto使用 Cliquet两者有什么区别? 免责声明:我是这两个工具的作者之一。由于这是一个经常被问到的问题,我认为在这里分享一个正确的答案是相关的:) 最佳答案 在 Mozilla Se
正如 Kinto 文档中所写,我可以 specify a custom configuration这边走: docker run --env-file ./kinto.env -p 8888:8888
我是一名优秀的程序员,十分优秀!