Pages annexes, exemples et details techniques dans une mise en page plus lisible.
Version la plus courte possible.
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
uploadscurl http://localhost:9082/v1/index.php
curl -X POST http://localhost:9082/v1/auth.php \
-H "Content-Type: application/json" \
-d '{"username":"ton_username","password":"ton_password"}'
Puis :
curl http://localhost:9082/v1/posts.php \
-H "Authorization: Bearer TON_TOKEN"
Tokens : POST /v1/lives.php?path=token. Secrets : env, config/livekit.local.php, ou /admin/livekit.php (techniciens is_admin comme sur Millitant, voir README.md).
TURN / WebRTC : WEBRTC_TURN_URLS, WEBRTC_TURN_AUTH_SECRET, WEBRTC_TURN_TTL, WEBRTC_TURN_REALM via env, config/turn.local.php ou /admin/turn.php. Les credentials TURN temporaires sont exposes via /v1/settings.php.
Details : README.md