← 返回命令列表

Linux command

agate 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Start

agate --content [/var/gemini] --hostname [example.com]

Example

agate --content [/var/gemini] --hostname [example.com] --certs [/etc/agate/certs]

Example

agate --content [/var/gemini] --hostname [example.com] --addr [0.0.0.0:1965]

Example

agate --content [/var/gemini] --hostname [example.com] --log-ip

说明

agate is a simple, secure server for the Gemini protocol, a lightweight alternative to HTTP focused on privacy and simplicity. It serves static content over TLS with minimal configuration. The server automatically generates TLS certificates if not provided, handles multiple virtual hosts, and serves Gemini text files (.gmi) and other content types based on file extensions.

参数

--content _dir_
Root directory for content
--hostname _host_
Hostname for the server (can be repeated for virtual hosting)
--addr _address_
Address to bind (default: 0.0.0.0:1965)
--certs _dir_
Directory for TLS certificates
--key _file_
TLS private key file
--cert _file_
TLS certificate file
--lang _code_
Default language for text/gemini responses
--log-ip
Log client IP addresses
--central-conf
Use central .meta files for configuration

FAQ

What is the agate command used for?

agate is a simple, secure server for the Gemini protocol, a lightweight alternative to HTTP focused on privacy and simplicity. It serves static content over TLS with minimal configuration. The server automatically generates TLS certificates if not provided, handles multiple virtual hosts, and serves Gemini text files (.gmi) and other content types based on file extensions.

How do I run a basic agate example?

Run `agate --content [/var/gemini] --hostname [example.com]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --content _dir_ do in agate?

Root directory for content