Expand README with desktop platform requirements (Windows x86, macOS ARM), helper build commands, gateway utility scripts, and updated local test flow. Add realistic MVP usage section clarifying current platform build status, gateway configuration needs, and admin debug profile behavior with client private key handling.
14 lines
307 B
Bash
14 lines
307 B
Bash
#!/usr/bin/env bash
|
|
set -eu
|
|
|
|
if ! command -v wg >/dev/null 2>&1; then
|
|
echo "wg is required to generate gateway keys"
|
|
exit 1
|
|
fi
|
|
|
|
PRIVATE_KEY="$(wg genkey)"
|
|
PUBLIC_KEY="$(printf '%s' "${PRIVATE_KEY}" | wg pubkey)"
|
|
|
|
echo "NEXAVPN_GATEWAY_PRIVATE_KEY=${PRIVATE_KEY}"
|
|
echo "GATEWAY_PUBLIC_KEY=${PUBLIC_KEY}"
|