调整证书生成指令,补充参数说明。
Signed-off-by: ithink.chan <chenyang@autoai.com>
This commit is contained in:
parent
bd5a0a23ea
commit
a885f05719
|
@ -93,9 +93,17 @@ sudo systemctl stop gitea
|
||||||
可以使用 Gitea 内嵌的 HTTPS 服务。内嵌 HTTPS 服务使用自认证证书,生成 10 年期限自认证证书命令如下:
|
可以使用 Gitea 内嵌的 HTTPS 服务。内嵌 HTTPS 服务使用自认证证书,生成 10 年期限自认证证书命令如下:
|
||||||
|
|
||||||
```sh
|
```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 it’s own certificate authority. Optional. |
|
||||||
|
|
||||||
编辑 app.ini 文件如下:
|
编辑 app.ini 文件如下:
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
|
|
Loading…
Reference in New Issue