Suddenly all CDN links are https rather than http, what happened?


I have no idea when this happened but I guess it was after some upgrade, all uploaded images were no longer http but https. I’ve talked to my CDN ISP but they said it was discourse that made the change.

Is that so? How can I keep using http?



Did you tick the “use https” site setting?

You mean this?

Yes, that’s the setting I was referring to.

I haven’t turned on this option. Any other ideas?

What site are you referring to, so that we can see the actual behaviour you’re talking about?

You can post an image on 关于最近论坛图片不能显示的说明 - General Chitchat | 聊天吹水 - iOSRE with username snaken1nny and password newpassw0rd, thank you!

I have the same problem in my forum, i use http only and when apply cdn, all site images are forced to https.

And this is a problem why?


If you dont have a ssl certificate, some browsers refund to display the images, this is my case.

1 Like

As @Fer_Nando said, both Chrome and Safari refuse to display the images without a valid certificate

1 Like

The CDN ISP provides a certicificate for you, right?
Which CDN are you using?

Yes, I can request for a free certificate but I didn’t. The CDN is from QiNiu, based in China.

I maked free cert in cloundfront, this solve my problem but other admins of discourse dont have an option for disable https in images when enable the cdn option, this is a small bug.

Is this a confirmed bug? @mpalmer

I don’t know and I doubt Matt can help you here :slight_smile:

Can you confirm:

  1. you are running latest?

  2. your DISCOURSE_CDN_URL is set to: ? (note how it is http there and not https)

1 Like

The question is for me?

I have “DISCOURSE_CDN_URL: //” in cdn option, no http or https set here.

1 Like

Then change it to:


Otherwise we will pick HTTPS for you.