Skip to content

Project-Own/media-soup-sfu

Repository files navigation

Mediasoup-SFU MediaSever

DevContainer

Run Docker

Open in Vscode DevContainer

OR,

docker-compose up
then attach container to vscode

Run

yarn - to install node modules
yarn start - to compile ts to dist/.js and start node server
yarn dev - to run nodemon with ts-node src/
.ts and develop in typescript
yarn watch - to run watchify watching public/index.js and create public/bundle.js

Config

File: src/config.ts
server location: https://localhost:3000
3000 port for server connection
40000-40200 port for udp connection

Production

Create AWS EC2 instance with Ubuntu Image

  1. Run "scripts/setup.sh" script to install necessary dependencies
  2. RUN "yarn" to install node_modules
  3. RUN "yarn start" or "tsc" to bundle ts-code to "dist" folder
  4. ** Need to update .env file for PRIVATE_IP, PUBLIC_IP and PORT
  5. ** "scripts/run.sh" updates .env file
  6. (Optional) Crontab for auto start dist/app.js on ec2 instance reboot/startup
  7. RUN "crontab -e" to open crontab editor
  8. Add "@reboot /home/ubuntu/media-soup-sfu/scripts/run.sh >> /home/ubuntu/cron.log"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published