In this episode, we're focusing on getting SSL set up for both our main domain and our WebSocket subdomain. We head over to our hosting platform (Forge) to use Let's Encrypt and provision new certificates for both domains, making sure everything runs securely over HTTPS. Since Cloudflare is being used in front of the site, there's a quick detour to temporarily disable its SSL so we can assign the new certificate without any hiccups.
You'll see how to pick and assign the right domains (and why we skip the www subdomain in this particular setup). If any issues pop up while provisioning the certificate, Forge provides some useful hints and error outputs so you can debug as needed.
Once everything is successful and the new SSL certificate is active, we jump back to Cloudflare to put the SSL back to full, ensuring all traffic is encrypted end-to-end. After confirming that our application and the ws subdomain both load securely, we update our application's environment settings to use the correct scheme (HTTPS) and port (443).
Finally, the episode ends with a quick note: we're not quite done yet! To fully apply the changes, we need to restart the server and rebuild assets, which will be covered in the next episode.