include these bits

This commit is contained in:
KenwoodFox
2026-06-15 11:29:17 -04:00
parent 35e56d25e7
commit f86a448fe1
4 changed files with 22 additions and 0 deletions

1
.gitignore vendored
View File

@@ -1,2 +1,3 @@
/target/ /target/
Cargo.lock Cargo.lock
.env

View File

@@ -13,3 +13,13 @@ rppal = "0.22"
tokio = { version = "1", features = ["macros", "rt-multi-thread", "signal", "sync", "time"] } tokio = { version = "1", features = ["macros", "rt-multi-thread", "signal", "sync", "time"] }
tracing = "0.1" tracing = "0.1"
tracing-subscriber = { version = "0.3", features = ["env-filter"] } tracing-subscriber = { version = "0.3", features = ["env-filter"] }
# Had to pin stack for rpi
idna_adapter = "=1.2.1"
icu_collections = "=2.1.1"
icu_locale_core = "=2.1.1"
icu_normalizer = "=2.1.1"
icu_normalizer_data = "=2.1.1"
icu_properties = "=2.1.2"
icu_properties_data = "=2.1.2"
icu_provider = "=2.1.1"

View File

@@ -24,3 +24,13 @@ sudo systemctl enable --now towerd
sudo systemctl status towerd sudo systemctl status towerd
sudo journalctl -u towerd -f sudo journalctl -u towerd -f
``` ```
## Config
Edit in `/etc/towerd/env`
```
TOWERD_INFLUX_TOKEN=<token>
TOWERD_INFLUX_ORG=<org>
TOWERD_INFLUX_BUCKET=<xyz>
```

View File

@@ -5,6 +5,7 @@ After=multi-user.target
[Service] [Service]
Type=simple Type=simple
User=root User=root
EnvironmentFile=-/etc/towerd/env
WorkingDirectory=/opt/towerd WorkingDirectory=/opt/towerd
ExecStart=/opt/towerd/target/release/towerd ExecStart=/opt/towerd/target/release/towerd
Restart=on-failure Restart=on-failure