Skip to content

yuanyahao333/ion-app-web-stu

 
 

Repository files navigation

ion-app-web

ion web app

Screenshots

Docker

Warning: make sure ion is deployed by docker too

Local hosting and auto ssl

Build docker image with production build of web app. erve on https://localhost:9090

Biz websocket is proxied using caddy server and docker network from ion. You will need to ensure that src/App.jsx line 99 has the correct port for this proxy to work.

docker network create ionnet
docker-compose -f docker-compose.yml up

Chat: https://localhost:9090

Run this to rebuild when you modify the code

docker-compose -f docker-compose.yml up --build

Prod hosting and auto SSL

Enable production ports and Caddy file for web service in docker-compose.prod.yml.

Make sure these ports are exposed publicly

80/tcp
443/tcp

Configure your domain/email in docker-compose.prod.yml

WWW_URL=yourdomain
ADMIN_EMAIL=yourname@yourdomain

Verify that you're using the correct port on src/App.jsx on line 99 as you'll be using Caddy to proxy requests.

Bring up docker with

docker pull pionwebrtc/ion-app-web
docker network create ionnet
docker-compose -f docker-compose.prod.yml up

Chat:

https://yourdomain

Local Dev

Setup

Install node modules

npm i

Run

Start dev server

npm start

Ensure that line 99 of src/App.jsx is pointed to :5551 since you can hit the SFU locally.

Chat: https://localhost:8080

About

ion web app

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 84.2%
  • SCSS 13.7%
  • Shell 1.5%
  • Other 0.6%