ssh-portal.example.json (view raw)
1{
2 "defaultSSH": {
3 "host": "gate.hidora.com",
4 "port": 3022
5 },
6 "instances": [
7 {
8 "name": "My App in test",
9 "username": "42099-7543",
10 "category": "Test"
11 },
12 {
13 "name": "My App in prod",
14 "username": "23771-7543",
15 "category": "Prod",
16 "host": "10.253.23.1",
17 "port": "2222"
18 }
19 ],
20 "actions": [
21 {
22 "name": "Voir les logs en continu",
23 "cmd": "tail -f -n 50 /var/log/run.log"
24 },
25 {
26 "name": "Voir les derniers logs",
27 "cmd": "tail -n 100 /var/log/run.log"
28 },
29 {
30 "name": "Voir les variables d'environnement",
31 "cmd": "env"
32 },
33 {
34 "name": "Ouvrir un shell",
35 "cmd": ""
36 }
37 ]
38}