add rssi
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Tobias Brunner 2023-01-20 21:45:07 +01:00
parent 9d704ea463
commit d45d5ba2e3
Signed by: tobru
SSH Key Fingerprint: SHA256:kywVhvCA+MIxL6eBgoQa+BfC/ROJqcfD2bpy1PR6Ebk
4 changed files with 8 additions and 3 deletions

View File

@ -15,6 +15,8 @@ data:
db_type: sqlite3
db_path: /vol/data/db.sqlite
private_key_path: /vol/secret/private.key
noise:
private_key_path: /vol/secret/noise_private.key
derp:
server:
enabled: true
@ -30,3 +32,4 @@ data:
nameservers:
- 9.9.9.9
base_domain: vpn.tobru.ch
magic_dns: true

View File

@ -17,7 +17,7 @@ spec:
- command:
- headscale
- serve
image: ghcr.io/juanfont/headscale:0.16.4
image: ghcr.io/juanfont/headscale:0.17.1
imagePullPolicy: IfNotPresent
env:
- name: GIN_MODE

View File

@ -33,6 +33,7 @@ data:
temperature=payload["uplink_message"]["decoded_payload"]["TempC_SHT"],
humidity=payload["uplink_message"]["decoded_payload"]["Hum_SHT"],
consumed_airtime=payload["uplink_message"]["consumed_airtime"].replace("s", ""),
rssi=payload["uplink_message"]["rx_metadata"][0]["rssi"],
gateway_id=payload["uplink_message"]["rx_metadata"][0]["gateway_ids"][
"gateway_id"
],

View File

@ -1,4 +1,5 @@
http://:8080 {
header content-type "application/jrd+json; charset=utf-8"
respond "{\"subject\":\"acct:tobru@mstdn.social\",\"aliases\":[\"https://mstdn.social/@tobru\",\"https://mstdn.social/users/tobru\"],\"links\":[{\"rel\":\"http://webfinger.net/rel/profile-page\",\"type\":\"text/html\",\"href\":\"https://mstdn.social/@tobru\"},{\"rel\":\"self\",\"type\":\"application/activity+json\",\"href\":\"https://mstdn.social/users/tobru\"},{\"rel\":\"http://ostatus.org/schema/1.0/subscribe\",\"template\":\"https://mstdn.social/authorize_interaction?uri={uri}\"}]}"
reverse_proxy https://social.tobru.ch {
header_up Host "social.tobru.ch"
}
}