티스토리 뷰

카테고리 없음

모질라 허브 띄우기2

미니대왕님 2022. 12. 7. 12:03

 


sudo su ops2


ops2@vr-gpu3:~/mozilla$ ll
drwxrwxr-x  9 ops2 ops2 4096 Nov 29 21:45 dialog/
drwxrwxr-x 15 ops2 ops2 4096 Nov 29 20:44 hubs/
drwxrwxr-x 17 ops2 ops2 4096 Nov 29 21:27 reticulum/
drwxrwxr-x 14 ops2 ops2 4096 Nov 29 21:21 Spoke/
drwxrwxr-x  3 ops2 ops2 4096 Nov 29 20:36 storage/

1. cd /home/ops2/mozilla/dialog/
MEDIASOUP_LISTEN_IP=0.0.0.0 MEDIASOUP_ANNOUNCED_IP=(호스트IP입력) npm start

2. cd /home/ops2/mozilla/hubs/
npm run local
2-1. cd /home/ops2/mozilla/hubs/admin
npm run local


3. cd /home/ops2/mozilla/reticulum
iex -S mix phx.server

4. cd /home/ops2/mozilla/Spoke/
npm run local

 

GitHub - mozilla/hubs: Duck-themed multi-user virtual spaces in WebVR. Built with A-Frame.

Duck-themed multi-user virtual spaces in WebVR. Built with A-Frame. - GitHub - mozilla/hubs: Duck-themed multi-user virtual spaces in WebVR. Built with A-Frame.

github.com

모질라 허브 입니다. 

Quick Start

Install NodeJS if you haven't already. We use 16.16.0 on our build servers. If you work on multiple javascript projects it may be useful to use something like NVM to manage multiple versions of node for you.

Run the following commands:

git clone https://github.com/mozilla/hubs.git
cd hubs
# nvm use v16.16.0 # if using NVM
npm ci
npm run dev

The backend dev server is configured with CORS to only accept connections from "hubs.local:8080", so you will need to access it from that host. To do this, you likely want to add "hubs.local" and "hubs-proxy.local" to the local "hosts" file on your computer:

127.0.0.1	hubs.local
127.0.0.1	hubs-proxy.local

Then visit https://hubs.local:8080 (note: HTTPS is required, you'll need to accept the warning for the self-signed SSL certificate)

Note: When running the Hubs client locally, you will still connect to the development versions of our Janus WebRTC and reticulum servers. These servers do not allow being accessed outside of localhost. If you want to host your own Hubs servers, please check out Hubs Cloud.

Mozilla Hubs는 다음과 같은 5가지 서버 프로그램과 데이터베이스를 사용하는 본격적이고 복잡한 구성입니다.

  • Hubs : 브라우저 클라이언트가 액세스하는 프런트 엔드 화면의 node.js 서버
  • Admin : node.js의 관리 서버
  • Reticulum : Elixir 서버에서 실내 실시간 통신을 포함한 대부분의 서버 처리
  • dialog : WebRTC에서 음성 통신을받는 서버
  • Spoke : 룸용 장면 작성, 아바타 관리 등 작성 모델을 관리하는 node.js 서버
  • PostgreSQL : Reticulum 및 Dialog에서 사용하는 데이터베이스입니다.

아래와 같이 도메인으로 띄워야 합니다.

https://meta.teacherville.co.kr:4000 

 

 

https://pm2.keymetrics.io/docs/usage/quick-start/

 

PM2 - Quick Start

Advanced process manager for production Node.js applications. Load balancer, logs facility, startup script, micro service management, at a glance.

pm2.keymetrics.io

 

 pm2 일괄 띄우기

 

일본 버추얼박스에서 띄우기

https://www.infiniteloop.co.jp/tech-blog/2022/02/mozilla-hubs-on-virtualbox/

 

Mozilla Hubs を VirtualBox でホストしてみた|技術ブログ|北海道札幌市・宮城県仙台市のVR・ゲー

 

www.infiniteloop.co.jp

 

댓글