Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix "running qad in the iroh-relay locally" instructions
Browse files Browse the repository at this point in the history
“ramfox” committed Jan 30, 2025

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent b1fefbd commit d6a729c
Showing 2 changed files with 4 additions and 10 deletions.
6 changes: 4 additions & 2 deletions iroh-relay/README.md
Original file line number Diff line number Diff line change
@@ -49,14 +49,16 @@ The easiest get that is to generate self-signed certificates using `rcgen`

Next, add the certificate paths to your iroh-relay config, here is an example of a config.toml file that will enable quic address discovery.
```toml
enable_quic_addr_discovery = true

[tls]
cert_mode = "Manual"
manual_cert_path = "/path/to/certs/cert.pem"
manual_key_path = "/path/to/certs/cert.key.pem"
```

Then run the server with the `--dev-quic` flag:
`cargo run --bin iroh-relay -- --config-path=/path/to/config.toml --dev-quic`
Then run the server with the `--dev` flag, like you would when normally testing locally:
`cargo run --bin iroh-relay -- --config-path=/path/to/config.toml --dev`

The relay server will run over http on port 3340, as it does using the `--dev` flag, but it will also run a QUIC server on port 7824.

8 changes: 0 additions & 8 deletions iroh-relay/src/main.rs
Original file line number Diff line number Diff line change
@@ -39,14 +39,6 @@ struct Cli {
/// Running in dev mode will ignore any config file fields pertaining to TLS.
#[clap(long, default_value_t = false)]
dev: bool,
/// Run in localhost development mode over plain HTTP and the QUIC endpoint for QUIC address discovery.
///
/// Defaults to running the relay server on port 3340 and the QUIC endpoint over 7842.
///
/// Running in dev-quic mode requires tls configuration for the QUIC endpoint. It will ignore
/// any tls configuration for the relay.
#[clap(long, default_value_t = false)]
dev_quic: bool,
/// Path to the configuration file.
///
/// If provided and no configuration file exists the default configuration will be

0 comments on commit d6a729c

Please sign in to comment.