Files
pubky-core/pubky-homeserver
SHAcollision 7e87e02ae9 chore(deps): bump pkarr to v3.3.1 pkarr-relay to v0.5.6 (#69)
* chore(deps): bump pkarr to v3.3.1 pkarr-relay to v0.5.6

* deps(testnet): force deps from workspace members
2025-02-18 07:00:39 -04:00
..
2025-02-13 21:06:11 +03:00

Pubky Homeserver

A pubky-core homeserver that acts as users' agent on the Internet, providing data availability and more.

Usage

Library

You can use the Homeserver as a library in other crates/binaries or for testing purposes.


#[tokio::main]
async fn main() -> Result<()> {
    Homeserver::builder().run().await?

    tokio::signal::ctrl_c().await?;

    tracing::info!("Shutting down Homeserver");

    server.shutdown();

    Ok(())
}

Binary

Use cargo run

cargo run -- --config=./src/config.toml

Or Build first then run from target.

Build

cargo build --release

Run with an optional config file

../target/release/pubky-homeserver --config=./src/config.toml