Cloudinary supports delivery of all images both through HTTP and HTTPS (SSL). Cloudinary delivers all images and transformed images through a fast CDN (Akamai, Fastly, and Amazon CloudFront). For HTTP delivery http://res.cloudinary.com is used, for HTTPS the base URL is https://res.cloudinary.com.
If you have an Advanced Cloudinary account with a dedicated CDN distribution, a different domain name might be used for HTTPS.
If you use one of our client libraries (Ruby, PHP, NodeJS, etc.), the URLs of images are built automatically using the correct domain either by detecting the request's protocol or by specifying :secure => true in calls to methods like cl_image_tag and cloudinary_url.
For example in NodeJS:
I have not had success in Rails 4 getting Cloudinary to serve images via https.
I have tried secure: true in cloudinary.yml, image_tag, cl_image_tag and also tried to define an cloudinary.rb initialization without success.
I have not had any success in Rails4 either setting secure: true in cloudinary.yml,
Here is my yml..
Any ideas would be appreciated.
Adding 'secure: true' to the cloudinary.yml file worked fine for me. Don't forget to restart your server to pick up the change.
Adding 'secure: true' doesn't work for me. Not sure if updating gem will help.
I'm using rails4-2.2 and cloudinary-1.2.2.
To add secure option Into config/initializer/cloudinary.rb instead of cloudinary.yml, it works for me.
Cloudinary.config do |config|
config.secure = true
# carrierwave integration code
Hi. I have the next image: http://res.cloudinary.com/pym/image/upload/c_scale,w_600/v1507704935/series/desarrollo-php-mysql_yhre8b.png
It is served right using http, however the image doesn't load when using https: https://res.cloudinary.com/pym/image/upload/c_scale,w_600/v1507704935/desarrollo-php-mysql_yhre8b.png
It happens usually?
Some days I can see the images loading well, but in others times they are off.
There is no resource named 'desarrollo-php-mysql_yhre8b' in account 'pym', and therefore you get an 404 error. You might have seen a cached resource occasionally.
You are right Roee. Thank you.
Yesterday I created a new folder and moved some of my images.
I was thinking "the URL will be the same because it contains an ID and it just allows me to organize my images". But I see that the resource name changes if the image is moved.
Thank you. My images are showing again.
Addind secure: true to my cloudinary.yml file worked for me. Thx for the help :D
Please sign in to leave a comment.