Files
mirotalk/app/ssl/README.md
T
2022-03-13 12:39:58 +01:00

757 B

Expose MiroTalk on HTTPS

mirotalk-https

  1. Generate a self-signed certificate
# install openssl 4 ubuntu
apt install openssl
# install openssl 4 mac
brew install openssl

# self-signed certificate
openssl genrsa -out key.pem
openssl req -new -key key.pem -out csr.pem
openssl x509 -req -days 9999 -in csr.pem -signkey key.pem -out cert.pem
rm csr.pem

# https://www.sslchecker.com/certdecoder
  1. Expose server.js on https
const isHttps = true;
  1. Change on client.js
const isHttps = true;

function getSignalingServer() {
    if (isHttps) {
        return 'https://' + location.hostname + ':' + signalingServerPort;
        // if need: change it with YOUR-SERVER-DOMAIN-NAME
    }
    //...
}