Troubleshooting "BAD CSRF" error on initial site setup?

This should do it:

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