Enable SSL in Discourse
First, configure Apache to enable SSL connections. Then, force HTTPS for all Discourse links using one of the following options:
Enable the following option in the Discourse config file at /opt/bitnami/apps/discourse/htdocs/config/site_settings.yml:
security: enable_flash_video_onebox: false use_https: true
NOTE: In Discourse versions prior to v0.9.8.1, the option name is use_ssl instead of use_https.
Update the HTTPS port entry in the database by following the steps below:
- Log in to the server console.
- Start the MySQL command-line client and connect to the MySQL database.
Execute the following SQL command, replacing the NEW_PORT placeholder with the number of the SSL port. If the SSL port is 443, leave the NEW_PORT placeholder empty.
mysql> UPDATE site_settings SET value = 'NEW_PORT' WHERE name = 'port'
Disable HTTP and redirect all requests to HTTPS URLs.
Restart the server:
$ sudo /opt/bitnami/ctlscript.sh restart