-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
添加命令行参数支持 添加 TLS 监听支持
- Loading branch information
Showing
2 changed files
with
129 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,48 @@ | ||
# acmeDeliver | ||
|
||
![GitHub](https://img.shields.io/github/license/julydate/acmeDeliver?style=flat-square) | ||
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/julydate/acmeDeliver?style=flat-square) | ||
|
||
acme.sh 证书分发服务 | ||
|
||
将 acme.sh 获取的证书通过 http 服务分发到多台服务器 | ||
|
||
## Usage | ||
|
||
```bash | ||
./acmeDeliver | ||
``` | ||
$ ./acmeDeliver -h | ||
acmeDeliver version: 0.1.0 | ||
Usage: acmeDeliver [-h] [-p port] [-d dirname] [-k password] [-t time] [-b address] [-tls] [-tlsport port] [-cert filename] [-key filename] | ||
|
||
Options: | ||
-h | ||
显示帮助信息 | ||
-p string | ||
服务端口,默认 9090 (default "9090") | ||
-d string | ||
证书文件所在目录,默认当前目录 (default "./") | ||
-k string | ||
密码,默认 passwd (default "passwd") | ||
-t int | ||
时间戳误差,默认 60 秒 (default 60) | ||
-b string | ||
绑定监听地址,默认绑定所有接口 | ||
-tls | ||
是否监听 TLS,默认关闭 | ||
-tlsport string | ||
TLS 服务端口,默认 9443 (default "9443") | ||
-cert string | ||
TLS 服务证书文件,默认 cert.pem | ||
-key string | ||
TLS 服务私钥文件,默认 key.pem (default "key.pem") | ||
``` | ||
|
||
## Example | ||
|
||
```bash | ||
./acmeDeliver -p 8080 -d "/tmp/acme" -k "passcode" -t 600 -b 0.0.0.0 -tls -tlsport 8443 -cert server.pem -key server.key | ||
``` | ||
|
||
## Document | ||
|
||
待更新 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters