Renovate Bot 38615107e0 Update dependency style-loader to v1.3.0 5 months ago
.github update renovate config to auto merge, add github action to run a build 5 months ago
public Update sdk. Fix double js import 2 years ago
scripts Add scripts; Fix dep 2 years ago
src remove unused proxy lines, remove extraneous colon 5 months ago
styles/css Adding connection info test widget 1 year ago
.babelrc Convert to new stream 2 years ago
.dockerignore - remove obsolete node-sass 5 months ago
.gitignore Move certs 2 years ago
Caddyfile remove unused proxy lines, remove extraneous colon 5 months ago
Dockerfile Merge pull request #86 from pion/renovate/caddy-2.x 5 months ago
LICENSE Initial commit 2 years ago
README.md updating readme for clarity around port issue 5 months ago
docker-compose.prod.yml (fix) docker upload 9 months ago
docker-compose.yml (fix) docker deploy 9 months ago
package-lock.json Update dependency style-loader to v1.3.0 5 months ago
package.json Update dependency style-loader to v1.3.0 5 months ago
prod.Caddyfile remove unused proxy lines, remove extraneous colon 5 months ago
renovate.json update renovate config to auto merge, add github action to run a build 5 months ago
webpack.config.js (feat) new sdk 6 months ago
yarn.lock Update dependency style-loader to v1.3.0 5 months ago

README.md

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