How to disable security check for force https or disable these emails?

Hi,

my forum installed in subfolder :hugs:. When I enable force https the lightbox for pictures does not work. The only one workaround I found is to disable force https option. I checked that 99% of traffic is encrypted except <1% of external pictures. I found this is ok for us.

After upgrade to 2.0.1 forum admins began receive emails with a warning about force https disabled on the forum.

Is any way to stop such security checks or send certain emails to admins? I cannot turn on this option due to compromise between security and usability.

You could override it in a custom plugin by setting check_force_https: false in below method

https://github.com/discourse/discourse/blob/6332d5040d18ee682c7e417f8131df77b51861e3/app/controllers/admin/dashboard_controller.rb#L10-L12

2 Likes

Hmm, wouldn’t we be seeing a similar problem with our hosted subfolder installs if this was the case?

Can you clarify what this means? What do you mean “does not work”, specifically?

Our problem:
when force https is enabled, then lightbox black frame, which is shown on mouse hover, totally disappeared from any picture in forum posts.

For example, you cannot zoom the image to the screen. You are able to see the picture in original size by right-click the picture and open it in new browser tab.

Once you disable force https, the problem with pictures should go away.

Thank you, @vinothkannans! I will take note of this but I found this too hard for me at this time :slight_smile:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.