From 28ca681ef265f3200fbb57fdf31c77b120ecd1ed Mon Sep 17 00:00:00 2001 From: jamesread Date: Wed, 19 May 2021 00:55:12 +0100 Subject: [PATCH] Example config.yaml --- var/config.yaml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/var/config.yaml b/var/config.yaml index 2b5ec64..4f4c01b 100644 --- a/var/config.yaml +++ b/var/config.yaml @@ -1,15 +1,42 @@ +# The WebUI is simply a static webserver. OliveTin comes with one builtin to +# make things easy, but you can also host the "webui" directory on a static +# webserver. listenAddressWebUI: 0.0.0.0:1337 # Listen on all addresses available, port 1337 + +# The REST API is used by the WebUI. +#listenAddressRestActions: 0.0.0.0:1338 + +# The gRPC API is unsed by the WebUI, and can also be limited to localhost:1339. +#listenAddressGrpcActions: 0.0.0.0:1339 + +# Choose from INFO (default), WARN and DEBUG logLevel: "INFO" + +# Actions (buttons) to show up on the WebUI: actions: - title: Restart Plex icon: smile shell: docker restart plex - # This will send 1 ping + # This will send 1 ping (-c 1) - title: Ping Google.com shell: ping google.com -c 1 + icon: ping # Restart lightdm on host "overseer" - title: restart lightdm icon: poop shell: ssh root@overseer 'service lightdm restart' + +- title: "teratan.lan Ansible site.yml" + icon: "🇦" + shell: ansible-playbook -i /etc/hosts /root/myPlaybook.yaml + +- title: sleep 2 seconds + shell: sleep 2 + icon: "🥱" + +- title: sleep 5 seconds (timeout) + shell: sleep 5 + icon: "😪" +