Skip to content

Commit cf62311

Browse files
Merge pull request #394 from HeavyHorst/master
update some docs
2 parents eef0d05 + 52b3371 commit cf62311

File tree

3 files changed

+30
-29
lines changed

3 files changed

+30
-29
lines changed

config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func init() {
9595
flag.BoolVar(&onetime, "onetime", false, "run once and exit")
9696
flag.StringVar(&prefix, "prefix", "/", "key path prefix")
9797
flag.BoolVar(&printVersion, "version", false, "print version and exit")
98-
flag.StringVar(&scheme, "scheme", "http", "the backend URI scheme (http or https)")
98+
flag.StringVar(&scheme, "scheme", "http", "the backend URI scheme for nodes retrieved from DNS SRV records (http or https)")
9999
flag.StringVar(&srvDomain, "srv-domain", "", "the name of the resource record")
100100
flag.StringVar(&srvRecord, "srv-record", "", "the SRV record to search for backends nodes. Example: _etcd-client._tcp.example.com")
101101
flag.BoolVar(&syncOnly, "sync-only", false, "sync without check_cmd and reload_cmd")

docs/command-line-flags.md

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,59 +9,60 @@ confd -h
99
```Text
1010
Usage of confd:
1111
-app-id string
12-
Vault app-id to use with the app-id backend (only used with -backend=vault and auth-type=app-id)
12+
Vault app-id to use with the app-id backend (only used with -backend=vault and auth-type=app-id)
1313
-auth-token string
14-
Auth bearer token to use
14+
Auth bearer token to use
1515
-auth-type string
16-
Vault auth backend type to use (only used with -backend=vault)
16+
Vault auth backend type to use (only used with -backend=vault)
1717
-backend string
18-
backend to use (default "etcd")
18+
backend to use (default "etcd")
1919
-basic-auth
20-
Use Basic Auth to authenticate (only used with -backend=etcd)
20+
Use Basic Auth to authenticate (only used with -backend=etcd)
2121
-client-ca-keys string
22-
client ca keys
22+
client ca keys
2323
-client-cert string
24-
the client cert
24+
the client cert
2525
-client-key string
26-
the client key
26+
the client key
2727
-confdir string
28-
confd conf directory (default "/etc/confd")
28+
confd conf directory (default "/etc/confd")
2929
-config-file string
30-
the confd config file
30+
the confd config file
3131
-interval int
32-
backend polling interval (default 600)
32+
backend polling interval (default 600)
3333
-keep-stage-file
34-
keep staged files
34+
keep staged files
3535
-log-level string
36-
level which confd should log messages
36+
level which confd should log messages
3737
-node value
38-
list of backend nodes (default [])
38+
list of backend nodes (default [])
3939
-noop
40-
only show pending changes
40+
only show pending changes
4141
-onetime
42-
run once and exit
42+
run once and exit
4343
-password string
44-
the password to authenticate with (only used with vault and etcd backends)
44+
the password to authenticate with (only used with vault and etcd backends)
4545
-prefix string
46-
key path prefix (default "/")
46+
key path prefix (default "/")
4747
-scheme string
48-
the backend URI scheme (http or https) (default "http")
48+
the backend URI scheme for nodes retrieved from DNS SRV records (http or https) (default "http")
4949
-srv-domain string
50-
the name of the resource record
50+
the name of the resource record
5151
-srv-record string
52-
the SRV record to search for backends nodes. Example: _etcd-client._tcp.example.com
52+
the SRV record to search for backends nodes. Example: _etcd-client._tcp.example.com
5353
-sync-only
54-
sync without check_cmd and reload_cmd
54+
sync without check_cmd and reload_cmd
5555
-table string
56-
the name of the DynamoDB table (only used with -backend=dynamodb)
56+
the name of the DynamoDB table (only used with -backend=dynamodb)
5757
-user-id string
58-
Vault user-id to use with the app-id backend (only used with -backend=value and auth-type=app-id)
58+
Vault user-id to use with the app-id backend (only used with -backend=value and auth-type=app-id)
5959
-username string
60-
the username to authenticate as (only used with vault and etcd backends)
60+
the username to authenticate as (only used with vault and etcd backends)
6161
-version
62-
print version and exit
62+
print version and exit
6363
-watch
64-
enable watch support
64+
enable watch support
65+
6566
```
6667

6768
> The -scheme flag is only used to set the URL scheme for nodes retrieved from DNS SRV records.

docs/quick-start-guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ confd supports two modes of operation daemon and onetime. In daemon mode confd p
126126
#### etcd
127127

128128
```
129-
confd -onetime -backend etcd -node 127.0.0.1:4001
129+
confd -onetime -backend etcd -node http://127.0.0.1:4001
130130
```
131131

132132
#### consul

0 commit comments

Comments
 (0)