From 4628820aa4d541af8aa68041afe475e4a2c1fbc2 Mon Sep 17 00:00:00 2001 From: Florian Hoss Date: Wed, 29 Jun 2022 13:47:26 +0200 Subject: [PATCH] Update teleport-node.yaml --- Teleport/etc/teleport-node.yaml | 35 ++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/Teleport/etc/teleport-node.yaml b/Teleport/etc/teleport-node.yaml index dd66475..ee2661d 100644 --- a/Teleport/etc/teleport-node.yaml +++ b/Teleport/etc/teleport-node.yaml @@ -15,21 +15,38 @@ ssh_service: labels: Type: Server permit_user_env: true - commands: - - name: IP - command: ["/bin/curl", "ifconfig.me"] - period: 1h0m0s - - name: UP - command: ["/bin/sh", "-c", "uptime -p | cut -c4- | cut -d',' -f1"] - period: 1h0m0s + commands: + - name: Compose + command: ["/bin/sh", "-c", "docker compose version --short"] + period: "168h" - name: Docker command: ["/bin/sh", "-c", "docker system info | grep Running | cut -d' ' -f4"] - period: 0h30m0s + period: "30m" + - name: Engine + command: ["/bin/sh", "-c", "docker version --format '{{.Server.Version}}'"] + period: "168h" + - name: Kernel + command: ["/bin/uname", "-r"] + period: "168h" + - name: Teleport + command: ["/bin/sh", "-c", "teleport version | cut -d' ' -f2"] + period: "168h" + - name: Temp + command: ["/bin/sh", "-c", "sensors | grep temp1 | cut -d' ' -f9"] + period: "1m" + proxy_service: enabled: no app_service: enabled: yes - apps: + apps: + - name: "dns" + description: "PiHole" + uri: "http://localhost/admin/" + rewrite: + redirect: + - "localhost" + - "dns.tp.unjx.de" - name: "scrutiny" uri: "http://localhost:8080" public_addr: "scrutiny.tp.fhoss.de"