Supporting pages, examples and technical details in a cleaner layout.
The shortest possible version.
mkdir -p militant-api-install
cd militant-api-install
curl -fsSLO https://gitlab.com/militant1/api-installer/-/raw/main/militant-api
chmod +x militant-api
./militant-api
./militant-api update
./militant-api uninstall
uploads volume or directorycurl http://localhost:9082/v1/index.php
curl -X POST http://localhost:9082/v1/auth.php \
-H "Content-Type: application/json" \
-d '{"username":"your_username","password":"your_password"}'
Then:
curl http://localhost:9082/v1/posts.php \
-H "Authorization: Bearer YOUR_TOKEN"
Tokens: POST /v1/lives.php?path=token. Secrets: env, config/livekit.local.php, or /admin/livekit.php (technicians with is_admin like Militant — see README.md).
TURN / WebRTC: WEBRTC_TURN_URLS, WEBRTC_TURN_AUTH_SECRET, WEBRTC_TURN_TTL, WEBRTC_TURN_REALM via env, config/turn.local.php, or /admin/turn.php. Temporary TURN credentials are exposed through /v1/settings.php.
Details: README.md