我计划使用 HTTP/2 协议部署 Django 应用程序,但我无法找到正确的解决方案。我如何使用 HTTP/2 为我的 Django Web 应用程序提供服务,我唯一发现的是hyper-h2 https://github.com/python-hyper/hyper-h2/tree/master/examples/asyncio.
我阅读了文档但无法设置连接。
你可以使用 Nginx 代理来做
如果你有现有的 nginx 配置。你只需添加一个词即可。http2在听
listen 443 ssl http2 default_server;
完整文档可在
https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-with-http-2-support-on-ubuntu-16-04 https://www.digitalocean.com/community/tutorials/how-to-set-up-nginx-with-http-2-support-on-ubuntu-16-04
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)