add vortex voice server

pull/114/head
blukai 5 months ago
parent 71e9b9579b
commit b28bffadfa

1
.gitignore vendored

@ -2,6 +2,7 @@ data*
.env
.env.web
.env.vortex
Revolt.toml
compose.override.yml

@ -24,5 +24,16 @@
reverse_proxy http://january:14705
}
route /vortex* {
@upgrade {
header Connection *Upgrade*
header Upgrade websocket
}
uri strip_prefix /vortex
reverse_proxy http://vortex:8080
reverse_proxy @upgrade http://vortex:8080
}
reverse_proxy http://web:5000
}

@ -124,7 +124,7 @@ cd revolt
Generate a configuration file by running:
```bash
./generate_config.sh your.domain
./generate_config.sh <your.domain> <vortex rtc ips>
```
You can find [more options here](https://github.com/revoltchat/backend/blob/df074260196f5ed246e6360d8e81ece84d8d9549/crates/core/config/Revolt.toml), some noteworthy configuration options:

@ -106,3 +106,16 @@ services:
/usr/bin/mc mb minio/revolt-uploads;
exit 0;
"
# Voice server (vortex)
vortex:
image: ghcr.io/revoltchat/vortex:0.3.0-alpha.1
restart: always
env_file: .env.vortex
# NOTE: default range is 10000-11000 which seems like too much for a small
# self hosted instance
environment:
- RTC_MIN_PORT=10000
- RTC_MAX_PORT=10100
ports:
- "10000-10100:10000-10100"

@ -11,6 +11,8 @@ echo "api = \"https://$1/api\"" >> Revolt.toml
echo "events = \"wss://$1/ws\"" >> Revolt.toml
echo "autumn = \"https://$1/autumn\"" >> Revolt.toml
echo "january = \"https://$1/january\"" >> Revolt.toml
echo "voso_legacy = \"https://$1/vortex\"" >> Revolt.toml
echo "voso_legacy_ws = \"wss://$1/vortex\"" >> Revolt.toml
# VAPID keys
echo "" >> Revolt.toml
@ -24,3 +26,12 @@ rm vapid_private.pem
echo "" >> Revolt.toml
echo "[files]" >> Revolt.toml
echo "encryption_key = \"$(openssl rand -base64 32)\"" >> Revolt.toml
# configure vortex
vortex_manage_token=$(openssl rand -base64 32)
echo "WS_URL=wss://$1/vortex" > .env.vortex
echo "MANAGE_TOKEN=$vortex_manage_token" >> .env.vortex
echo "RTC_IPS=$2" >> .env.vortex
echo "" >> Revolt.toml
echo "[api.security]" >> Revolt.toml
echo "voso_legacy_token = \"$vortex_manage_token\"" >> Revolt.toml

Loading…
Cancel
Save