mirror of
https://github.com/YGGverse/btracker-gemini.git
synced 2026-03-31 09:05:30 +00:00
initial commit
This commit is contained in:
parent
fc65ac65d5
commit
1f2eb60318
8 changed files with 442 additions and 0 deletions
40
README.md
Normal file
40
README.md
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
# btracker-gemini
|
||||
|
||||

|
||||
[](https://deps.rs/repo/github/YGGverse/btracker-gemini)
|
||||
[](https://crates.io/crates/btracker-gemini)
|
||||
|
||||
βtracker server implementation for the Gemini protocol
|
||||
|
||||
> [!NOTE]
|
||||
> In development!
|
||||
|
||||
## Install
|
||||
|
||||
``` bash
|
||||
git clone https://github.com/YGGverse/btracker-gemini.git && cd btracker-gemini
|
||||
cargo build --release
|
||||
sudo install target/release/btracker-gemini /usr/local/bin/btracker-gemini
|
||||
```
|
||||
* to setup Rust environment see [rustup](https://rustup.rs)
|
||||
|
||||
## Setup
|
||||
|
||||
<details>
|
||||
<summary>Generate PKCS (PFX)</summary>
|
||||
<pre>
|
||||
openssl genpkey -algorithm RSA -out server.pem -pkeyopt rsa_keygen_bits:2048
|
||||
openssl req -new -key server.pem -out request.csr
|
||||
openssl x509 -req -in request.csr -signkey server.pem -out server.crt -days 365
|
||||
openssl pkcs12 -export -out server.pfx -inkey server.pem -in server.crt</pre>
|
||||
</details>
|
||||
|
||||
## Launch
|
||||
|
||||
``` bash
|
||||
btracker-gemini -i /path/to/server.pfx\
|
||||
-s /path/to/btracker-fs
|
||||
```
|
||||
* prepend `RUST_LOG=trace` or `RUST_LOG=btracker_gemini=trace` to debug
|
||||
* use `-b` to bind server on specified `host:port`
|
||||
* use `-h` to print all available options
|
||||
Loading…
Add table
Add a link
Reference in a new issue