You Just have to go to settings and enable the checkbox that says force https.
Just to be clear, be 100% sure that your reverse proxy can handle ssl for discourse before enabling that setting.
Discourse doesn’t play nice with apache2 … If possible move to nginx.