update workflow and add ssh keys support

This commit is contained in:
Shinuwa 2026-06-12 21:29:36 +02:00
parent f3a8a8d757
commit 3947df9fbb
6 changed files with 69 additions and 12 deletions

View file

@ -18,6 +18,7 @@ Variables utiles:
- `SESSION_TTL_HOURS`: duree des sessions, defaut `12`.
- `*_SSH_TARGET`: cible SSH du profil de lancement, alias SSH ou `user@host`.
- `*_SSH_PORT`: port SSH optionnel. Vide par defaut.
- `*_SSH_KEY_FILE`: chemin optionnel vers une cle SSH privee.
- `*_START_COMMAND`: commande distante executee sur la cible SSH.
Pour changer le port, modifier `.env`:
@ -31,6 +32,7 @@ Exemple de lancement distant via SSH:
```env
GAME_1_SSH_TARGET=user@192.0.2.10
GAME_1_SSH_PORT=2222
GAME_1_SSH_KEY_FILE=/home/app/.ssh/game-server-key
GAME_1_START_COMMAND="bash /opt/game-server-1/start.sh"
```