-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.json
More file actions
69 lines (65 loc) · 1.48 KB
/
config.json
File metadata and controls
69 lines (65 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"server_ip": "0.0.0.0",
"server_port": "8443",
"tls_cert": "cert.pem",
"tls_key": "key.pem",
"sudo_user": "yourlinuxuser",
"sudo_password": "yourSudoPassword",
"users": [
{
"username": "admin",
"password": "adminpass",
"allowed_commands": ["*"]
},
{
"username": "limiteduser",
"password": "limitedpass",
"allowed_commands": ["Restart Plex", "Restart Web Nginx"]
}
],
"remotes": [
{
"name": "Web Server",
"ip": "192.168.1.100",
"user": "remoteuser1",
"password": "remotepassword1"
},
{
"name": "Database Server",
"ip": "192.168.1.200",
"user": "remoteuser2",
"password": "remotepassword2"
}
],
"commands": [
{
"name": "Restart Plex",
"type": "local",
"command": "systemctl restart plexmediaserver"
},
{
"name": "Restart Nginx",
"type": "local",
"command": "systemctl restart nginx && systemctl restart php8.2-fpm"
},
{
"name": "Restart Web Nginx",
"type": "remote",
"remote_name": "Web Server",
"command": "sudo systemctl restart nginx && sudo systemctl restart php8.2-fpm"
},
{
"name": "Restart Database",
"type": "remote",
"remote_name": "Database Server",
"command": "sudo systemctl restart mysql"
}
],
"status": {
"local": ["plexmediaserver", "nginx"],
"remote": {
"Web Server": ["nginx"],
"Database Server": ["mysql"]
}
}
}