ServiceWorker script evaluation failed due to HTTP (not HTTPS)

ssh root@your.server.ip
cd /var/discourse
./launcher enter app
rails c
puts SiteSetting.force_https