add some app_service and more commands

This commit is contained in:
Florian Hoss 2021-12-16 08:24:00 +01:00 committed by GitHub
parent be09138712
commit 03bfa09337
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -13,15 +13,29 @@ auth_service:
ssh_service:
enabled: yes
labels:
VM: example
IP: 78.47.145.201
Type: Server
permit_user_env: true
commands:
- name: OS
command: [/bin/uname, -o]
commands:
- name: IP
command: ["/bin/curl", "ifconfig.me"]
period: 1h0m0s
- name: UP
command: ["/bin/sh", "-c", "uptime -p | cut -c4-"]
command: ["/bin/sh", "-c", "uptime -p | cut -c4- | cut -d',' -f1"]
period: 1h0m0s
- name: Docker
command: ["/bin/sh", "-c", "docker system info | grep Running | cut -d' ' -f4"]
period: 0h30m0s
proxy_service:
enabled: no
app_service:
enabled: yes
apps:
- name: "scrutiny"
uri: "http://localhost:8080"
public_addr: "scrutiny.tp.fhoss.de"
labels:
Type: "S.M.A.R.T"
commands:
- name: "Server"
command: ['/bin/sh', '-c', 'hostname | cut -d"." -f1 | sed -e "s/\(.\)/\U\1/"']
period: 24h0m0s