mirror of
https://github.com/cloudflare/redoctober.git
synced 2026-04-23 01:30:53 +00:00
Fix the usage string, example systemd files, and README for breaking flags change.
This commit is contained in:
@@ -56,8 +56,8 @@ You're ready to run the server:
|
||||
|
||||
$ ./bin/redoctober -addr=localhost:8080 \
|
||||
-vaultpath=diskrecord.json \
|
||||
-cert=cert/server.crt \
|
||||
-key=cert/server.pem
|
||||
-certs=cert/server.crt \
|
||||
-keys=cert/server.pem
|
||||
|
||||
## Quick start: example webapp
|
||||
|
||||
|
||||
@@ -199,12 +199,12 @@ func (this *indexHandler) handle(w http.ResponseWriter, r *http.Request) {
|
||||
|
||||
const usage = `Usage:
|
||||
|
||||
redoctober -static <path> -vaultpath <path> -addr <addr> [-cert <path> -key <path> | -multicert <certpaths> -multikey <keypaths>] [-ca <path>]
|
||||
redoctober -static <path> -vaultpath <path> -addr <addr> -certs <path1>[,<path2>,...] -keys <path1>[,<path2>,...] [-ca <path>]
|
||||
|
||||
example:
|
||||
redoctober -vaultpath diskrecord.json -addr localhost:8080 -cert cert.pem -key cert.key
|
||||
single-cert example:
|
||||
redoctober -vaultpath diskrecord.json -addr localhost:8080 -certs cert.pem -keys cert.key
|
||||
multi-cert example:
|
||||
redoctober -vaultpath diskerecord.json -addr localhost:8080 -certs cert1.pem,cert2.pem -keys cert1.key,cert2.key
|
||||
redoctober -vaultpath diskrecord.json -addr localhost:8080 -certs cert1.pem,cert2.pem -keys cert1.key,cert2.key
|
||||
`
|
||||
|
||||
func main() {
|
||||
|
||||
@@ -14,7 +14,7 @@ Group=redoctober
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/local/sbin/redoctober -vaultpath=/etc/redoctober/diskrecord.json -cert=/etc/redoctober/cert/server.crt -key=/etc/redoctober/cert/server.pem -systemdfds
|
||||
ExecStart=/usr/local/sbin/redoctober -vaultpath=/etc/redoctober/diskrecord.json -certs=/etc/redoctober/cert/server.crt -keys=/etc/redoctober/cert/server.pem -systemdfds
|
||||
User=redoctober
|
||||
Group=redoctober
|
||||
SyslogIdentifier=redoctober
|
||||
|
||||
Reference in New Issue
Block a user