¿Solucionando el error "BAD CSRF" en la configuración inicial del sitio?

This should do it:

./launcher enter app
cd /var/www/discourse
rails c
SiteSetting.force_https = true
3 Me gusta