25ad97555f
Voice goes through a separate relay (moonwell-voice-relay, from the MoonWell client repo), never the world socket. mangosd only vouches: `.mwvoice` answers the player with an HMAC-signed ticket and the relay address as an addon line (prefix MWV), and every 250 ms the world thread sends the relay each character in the world: faction, map, instance, position, group and guild, so no client can claim a place, group or guild of its own. The feed is read after the map update, under the lock that keeps async packets out. Sends are counted and logged every 30 s. MoonWell.Voice.* in mangosd.conf (off by default); the production compose adds the voice-relay container (UDP 3725) and the voice_secret secret, deploy/local enables voice against a relay on the Windows host. Checked: the changed units build in vmangos-buildenv; a ticket and a feed datagram made by this code verify in the relay tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
453 B
Bash
Executable File
15 lines
453 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")"
|
|
mkdir -p secrets data
|
|
chmod 0700 secrets
|
|
for secret in db_password db_root_password voice_secret; do
|
|
if [[ ! -e "secrets/$secret" ]]; then
|
|
(umask 077; openssl rand -hex 32 > "secrets/$secret")
|
|
fi
|
|
chmod 0444 "secrets/$secret"
|
|
done
|
|
../production/prepare-db.sh
|
|
./compose.sh config --quiet
|
|
echo 'Local configuration ready. Add client data to deploy/local/data before starting mangosd.'
|