Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

你好,能支持下HTTPS的情况吗? #23

Open
snowrry opened this issue Sep 23, 2017 · 2 comments
Open

你好,能支持下HTTPS的情况吗? #23

snowrry opened this issue Sep 23, 2017 · 2 comments

Comments

@snowrry
Copy link

snowrry commented Sep 23, 2017

cname配置了CDN的域名,然后我们现在全站都是HTTPS了,CDN也是。但是目前这个库返回的URL都是http开头的。
Amazon的S3的话是有一个AWS_S3_SECURE_URLS的配置。
但是如果能够动态的根据django的SECURE_PROXY_SSL_HEADER来决定是HTTPS还是HTTP的话,那就最佳了。谢谢!
https://docs.djangoproject.com/en/1.11/ref/settings/#std:setting-SECURE_PROXY_SSL_HEADER

@xiewenya
Copy link
Owner

你好,我已经有一段时间没有开发django了,你可以添加这个功能之后在合并进来

@zhiwehu
Copy link

zhiwehu commented Nov 10, 2018

@snowrry 只要在settings里将ENDPOINT设置为https://开头即可。
例如:
END_POINT = 'https://oss-cn-shanghai.aliyuncs.com'

如果不加https://,会默认为http://

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants