0.1.0 • Published 4 years ago

quackamole-server v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

p2p-videochat-platform - backend

Steps

Generate ssl certs for localhost

This will create two files: localhost.crt and localhost.key. These are only required on localhost when SSL_ENABLED=True. On a real server we will use letsencrypt/certbot.

$ cd backend
$ openssl req -x509 -out localhost.crt -keyout localhost.key \
  -newkey rsa:2048 -nodes -sha256 \
  -subj '/CN=localhost' -extensions EXT -config <( \
   printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")

Make sure the two new files are inside the backend folder.

Start backend

$ cd backend
$ npm install
$ npm run start-dev

Generate SSL Certificates to deploy on real server (Ubuntu 18.04 LTS)

See instruction for other systems

sudo apt-get update
sudo apt-get install software-properties-common
sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install certbot
# Requires you to temporary stop your running servers
sudo certbot certonly --standalone