Please note: This is the same as https://nertant.com/2016/02/05/enabling-https-ssl-connection-with-the-shout-self-hosted-irc-client/ but updated for the more up-to-date fork called The Lounge.
First you should stop lounge.
Make a directory for our SSL certificate:
Generate our SSL certificate:
openssl genrsa 1024 > key.pem
openssl req -x509 -new -key key.pem > key-cert.pem
Let’s edit our lounge config file to enable https and tell lounge where our SSL certificate is located.
Find the section:
enable: false, to
enable: true and populate the key and certificate fields:
My config file looks like:
// Enable HTTPS support.
lounge is now accessible from https. Since the SSL certificate is self-signed, your browser will likely present a warning when trying to access lounge. This can be disregarded for most personal uses. If your lounge instance is accessible by many people, it’s probably a good idea to use a paid SSL certificate to prevent seeing the warning message in the browser.