Skip to content

Commit

Permalink
feat: clap
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrpdev committed Sep 10, 2024
1 parent f1b2a67 commit 5af7a1a
Show file tree
Hide file tree
Showing 5 changed files with 282 additions and 67 deletions.
120 changes: 120 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ anyhow = "1.0.86"
askama = { version = "0.12.1", default-features = false, features = ["config"] }
axum = { version = "0.7.5", default-features = false, features = ["tokio", "http1"] }
axum-server = { version = "0.7.1", features = ["tls-rustls"] }
clap = { version = "4.5.17", features = ["derive"]}
sysinfo = { version = "0.31.2", default-features = false, features = ["disk", "network", "system", "multithread"] }
tokio = { version = "1.4.0", features = ["rt-multi-thread", "signal"] }
tokio-stream = { version = "0.1.15", features = ["sync"] }
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ ssh -t [email protected] "chmod +x ~/rspi-bios/rspi-bios && ~/rspi-bios/rs
sudo setcap CAP_NET_BIND_SERVICE=+eip ./rspi-bios

# Run on low port
./rspi-bios 443
./rspi-bios --https-port 443
```

#### Start on boot (optional)
Expand Down
2 changes: 1 addition & 1 deletion debian/rspi-bios.service
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ StartLimitBurst=5
Type=simple
User=piotrpdev
WorkingDirectory=/var/log/rspi-bios/
ExecStart=/usr/bin/rspi-bios 443
ExecStart=/usr/bin/rspi-bios --https-port 443
Restart=on-failure
RestartSec=5s

Expand Down
Loading

0 comments on commit 5af7a1a

Please sign in to comment.