# בדיקה לתעודה תקינה להפעלת force\_https שבורה, משאירה אותה כבויה כשצריך להיות דולק

**URL:** <https://meta.discourse.org/t/test-for-valid-cert-to-enable-force-https-is-broken-leaving-it-off-when-it-should-be-on/205547>\
**Category:** Bug\
**Created:** [8 באוקטובר,‏ 2021,‏ 1:53pm UTC](https://meta.discourse.org/t/test-for-valid-cert-to-enable-force-https-is-broken-leaving-it-off-when-it-should-be-on/205547 "2021-10-08T13:53:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)\
**Post date:** [8 באוקטובר,‏ 2021,‏ 4:26pm UTC](https://meta.discourse.org/t/test-for-valid-cert-to-enable-force-https-is-broken-leaving-it-off-when-it-should-be-on/205547/2 "2021-10-08T16:26:15Z")

</div>

It’s [automatically enabled](https://github.com/discourse/discourse_docker/blob/e60174cfa035d591b7bd36c34c7abe8581e9a56b/templates/web.letsencrypt.ssl.template.yml#L103) in `discourse.conf` _if_ a valid certificate is present.  
That is indeed since a year or two ago.

`grep -q 'force_https' "/var/www/discourse/config/discourse.conf" || echo "force_https = 'true'" >> "/var/www/discourse/config/discourse.conf"`

---

_[View the full topic](https://meta.discourse.org/t/test-for-valid-cert-to-enable-force-https-is-broken-leaving-it-off-when-it-should-be-on/205547)._
