1.2.1 • Published 3 years ago

immers v1.2.1

Weekly downloads
3
License
AGPL-3.0-or-later
Repository
github
Last release
3 years ago

immers

ActivityPub server for immers.space - a decentralized virtual reality metaverse platform powered by Mozilla Hubs and activitypub-express.

Installation

We provide a Docker Hub image for immers, and the immers-app repo contains docker-compose configuration, configuration script, and deploy instructions. If you prefer to run immers without docker, it can be deployed just like any other NodeJS & MongoDB app.

Configuration

Immers looks for the following configuration values as environment variables or in a .env file in the project root.

Required configuration

VariableValueExample
nameName of your immerImmers Space
domainDomain name for your immers serverimmers.space
hubDomain name for your Mozilla Hubs Cloud or other connected immersive experiencehub.immers.space
smtpHostMail service domain (for password resets)smtp.sendgrid.net
smtpPortMail service port587
smtpUserMail service usernameapikey
smtpPasswordMail service password
sessionSecretSecret key for session cookie encryptionAutomatically generated when using setup script
easySecretSecret key for email token encryptionAutomatically generated when using setup script

Optional configuration

VariableValueDefault
homepageRedirect root html requests to this urlUse hub url
googleFontFont family name from to fetch from Google Fonts for immer name headerMonoton
backgroundColorCSS color#a6549d
backgroundImageImage filevapor.png
iconImage filevaporwave-icon.png
imageAttributionTextAttribution for backgroundImage, if neededVectors by Vecteezy
imageAttributionUrlAttribution for backgroundImage, if neededhttps://www.vecteezy.com/free-vector/vector
monetizationPointerPayment pointer for Web Monetization on login & profile pagesImmers Space organization wallet
dbNameDatabase name to use with MongoDbmongodb
portPort number for immers sever8081
smtpFromFrom address for emailsnoreplay@mail.domain
emailOptInURLLink to an opt-in form for email updates to show on registration pageNone
emailOptInParamQuery parameter for emailOptInURL for the e-mail addressUse opt-in url without inserting e-mail
emailOptInNameParamQuery parameter for emailOptInURL for the nameUse opt-in url without inserting name
systemUserNameUsername for a "Service" type actor representing the Immer, enables welcome messages and Mastodon secure mode compatibilitynone (does not create service actor)
systemDisplayNameSets the display name for the service actornone
welcomeHTML file for a message that will be delivered from the system user to new user's inboxes (requires systemUserName)none (does not send message)
keyPath, certPath, caPathLocal development only. Relative paths to certificate filesNone

Local dev

immers

  • Clone and install immers
git clone https://github.com/immers-space/immers.git
cd immers
npm ci
  • Install a self-signed certificate
mkdir certs
sudo openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout certs/server.key -out certs/server.cert
  • Install mongodb
  • Run immer with npm run dev

hubs

  • Clone and install our fork
git clone https://github.com/immers-space/hubs.git
cd hubs
git checkout immers-integration
npm ci
npm run build:client
  • Run hub with either npm run dev (use Hubs dev networking servers) or npm run start (to connect to your hubs cloud networking server).
  • Visit you immer at https://localhost:8081, approve the certificate exception, get automatically forwarded to your hub at https://localhost:8080, approve another certificate exception, create a room, and you will be redirected to login or register with your immer.

Default immers server is https://localhost:8081, override with entry IMMERS_SERVER in hubs repo root folder .env file.

If working on immers server web client, run both npm run dev:client and npm run dev at the same time.