We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
The text was updated successfully, but these errors were encountered:
你好,我已经有一段时间没有开发django了,你可以添加这个功能之后在合并进来
Sorry, something went wrong.
@snowrry 只要在settings里将ENDPOINT设置为https://开头即可。 例如: END_POINT = 'https://oss-cn-shanghai.aliyuncs.com'
https://
END_POINT = 'https://oss-cn-shanghai.aliyuncs.com'
如果不加https://,会默认为http://
http://
No branches or pull requests
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
The text was updated successfully, but these errors were encountered: