Helpaj paghoj, ekzemploj kaj teknikaj detaloj en pli klara aranĝo.
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
curl http://localhost:9082/v1/index.php
curl -X POST http://localhost:9082/v1/auth.php \
-H "Content-Type: application/json" \
-d '{"username":"via_uzanto","password":"via_pasvorto"}'
curl http://localhost:9082/v1/posts.php \
-H "Authorization: Bearer VIA_TOKEN"
Agordu LIVEKIT_URL, LIVEKIT_API_KEY, LIVEKIT_API_SECRET (medio au config/livekit.local.php per /admin/livekit.php). Testi tokenon:
curl -X POST "http://localhost:9082/v1/lives.php?path=token" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer VIA_TOKEN" \
-d '{"roomName":"test","identity":"user-1","name":"Test","canPublish":false}'
La interfaco /admin/livekit.php (LiveKit-sekretoj) estas nur por teknikistoj: sama regulo kiel ĉe Militant (users.is_admin = 1, langeto Teknikistoj en admin.php).
Agordu WEBRTC_TURN_URLS, WEBRTC_TURN_AUTH_SECRET, WEBRTC_TURN_TTL, WEBRTC_TURN_REALM (medio au config/turn.local.php per /admin/turn.php).
/v1/settings.php poste redonas stun_servers, turn_servers kaj webrtc_ice_servers. Se WEBRTC_TURN_AUTH_SECRET ĉeestas, la API generas provizorajn HMAC TURN-kredencialojn kongruajn kun coturn use-auth-secret.
./militant-api update
./militant-api uninstall
Pli da detaloj: README.md kaj DOCKER.md