调整证书生成指令,补充参数说明。

Signed-off-by: ithink.chan <chenyang@autoai.com>
This commit is contained in:
ithink.chan 2019-07-11 09:59:21 +08:00
parent bd5a0a23ea
commit a885f05719
1 changed files with 9 additions and 1 deletions

View File

@ -93,9 +93,17 @@ sudo systemctl stop gitea
可以使用 Gitea 内嵌的 HTTPS 服务。内嵌 HTTPS 服务使用自认证证书,生成 10 年期限自认证证书命令如下:
```sh
gitea cert --host [HOST] --duration 87600h
gitea cert --host <HOST0,HOST1,...> --ca --duration 87600h
```
参数说明:
| Argument | Description |
|----------------------|-----------------------------------------------------------------------------------------------------------|
| --host \<value\> | Comma seperated hostnames and ips which this certificate is valid for. Wildcards are supported. Required. |
| --duration \<value\> | Duration which the certificate is valid for. Optional. (default: 8760h0m0s) |
| --ca | If provided, this cert generates its own certificate authority. Optional. |
编辑 app.ini 文件如下:
```ini