diff --git a/Software/Application/Gitea/Gitea_安装和配置.md b/Software/Application/Gitea/Gitea_安装和配置.md index 4955dab..c8d05da 100644 --- a/Software/Application/Gitea/Gitea_安装和配置.md +++ b/Software/Application/Gitea/Gitea_安装和配置.md @@ -93,9 +93,17 @@ sudo systemctl stop gitea 可以使用 Gitea 内嵌的 HTTPS 服务。内嵌 HTTPS 服务使用自认证证书,生成 10 年期限自认证证书命令如下: ```sh -gitea cert --host [HOST] --duration 87600h +gitea cert --host --ca --duration 87600h ``` +参数说明: + +| Argument | Description | +|----------------------|-----------------------------------------------------------------------------------------------------------| +| --host \ | Comma seperated hostnames and ips which this certificate is valid for. Wildcards are supported. Required. | +| --duration \ | Duration which the certificate is valid for. Optional. (default: 8760h0m0s) | +| --ca | If provided, this cert generates it’s own certificate authority. Optional. | + 编辑 app.ini 文件如下: ```ini