Crates.io | gday_server |
lib.rs | gday_server |
version | 0.2.0 |
source | src |
created_at | 2024-06-07 22:27:51.308666 |
updated_at | 2024-07-12 05:09:36.750676 |
description | Server that lets 2 peers exchange their socket addresses. |
homepage | https://github.com/manforowicz/gday/tree/main/gday_server |
repository | https://github.com/manforowicz/gday/ |
max_upload_size | |
id | 1265253 |
size | 62,267 |
Note: this crate is still in early-development, so expect breaking changes.
A server that runs the gday_contact_exchange_protocol.
To run the executable directly:
tar xf <file>
)../gday_server
To install with cargo:
$ cargo install gday_server
To install with brew:
$ brew install manforowicz/tap/gday_server
Usage: gday_server [OPTIONS]
Options:
-k, --key <KEY> PEM file of private TLS server key
-c, --certificate <CERTIFICATE> PEM file of signed TLS server certificate
-u, --unencrypted Use unencrypted TCP instead of TLS
-a, --address <ADDRESS> Custom socket address on which to listen. [default: `[::]:2311` for TLS, `[::]:2310` when --unencrypted]
-t, --timeout <TIMEOUT> Number of seconds before a new room is deleted [default: 3600]
-r, --request-limit <REQUEST_LIMIT> Max number of requests an IP address can send in a minute before they're rejected [default: 60]
-v, --verbosity <VERBOSITY> Log verbosity. (trace, debug, info, warn, error) [default: info]
-h, --help Print help
-V, --version Print version
One of the strengths of gday is its decentralized nature. Want to add your own server to the list of default servers? Here's how:
wget
to download gday_server from the releases page.gday_server
with the correct TLS arguments.gday
with your server domain name passed as an argument.gday_server
auto-starts in the background, even when you reboot the server.