mirror of
https://github.com/YGGverse/agate.git
synced 2026-04-09 04:55:27 +00:00
Remove duplicated instructions
This commit is contained in:
parent
9b5ca7f130
commit
75a0d127a1
1 changed files with 2 additions and 4 deletions
|
|
@ -20,16 +20,14 @@ Agate is a server for the [Gemini] network protocol, built with the [Rust] progr
|
||||||
Or download the source code and run `cargo build --release` inside the
|
Or download the source code and run `cargo build --release` inside the
|
||||||
source repository, then find the binary at `target/release/agate`.
|
source repository, then find the binary at `target/release/agate`.
|
||||||
|
|
||||||
2. Run `cargo install agate` to install agate from crates.io, or clone the [source], run `cargo build --release`, and then copy the compiled binary from `target/release/agate` to any location you want. (You can also use `cargo run --release <args>` to run Agate from within the source directory.)
|
2. Generate a self-signed TLS certificate and private key. For example, if you have OpenSSL 1.1 installed, you can use a command like the following. (Replace the hostname with the address of your Gemini server.)
|
||||||
|
|
||||||
3. Generate a self-signed TLS certificate and private key. For example, if you have OpenSSL 1.1 installed, you can use a command like the following. (Replace the hostname with the address of your Gemini server.)
|
|
||||||
|
|
||||||
```
|
```
|
||||||
openssl req -x509 -newkey rsa:4096 -keyout key.rsa -out cert.pem \
|
openssl req -x509 -newkey rsa:4096 -keyout key.rsa -out cert.pem \
|
||||||
-days 3650 -nodes -subj "/CN=example.com"
|
-days 3650 -nodes -subj "/CN=example.com"
|
||||||
```
|
```
|
||||||
|
|
||||||
4. Run the server. The command line arguments are `agate <addr:port> <content_dir> <cert_file> <key_file>`. For example, to listen on the standard Gemini port (1965) on all interfaces:
|
3. Run the server. The command line arguments are `agate <addr:port> <content_dir> <cert_file> <key_file>`. For example, to listen on the standard Gemini port (1965) on all interfaces:
|
||||||
|
|
||||||
```
|
```
|
||||||
agate 0.0.0.0:1965 path/to/content/ cert.pem key.rsa
|
agate 0.0.0.0:1965 path/to/content/ cert.pem key.rsa
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue