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

AI-generated summary

The discussion revolves around disabling security checks or emails related to the “force https” option in Discourse. Ivan_Rapekas is experiencing issues with lightbox functionality for pictures when “force https” is enabled, as the lightbox frame disappears, preventing image zooming. Disabling “force https” resolves the issue, but triggers security warning emails to admins. vinothkannans suggests overriding the security check by setting check_force_https: false in a custom plugin, but Ivan_Rapekas finds this solution too complex.

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

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: