forked from cretz/caddy-tlsconsul
-
-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathconfig.go
24 lines (17 loc) · 796 Bytes
/
config.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package storageconsul
const (
// DefaultPrefix defines the default prefix in KV store
DefaultPrefix = "caddytls"
// DefaultAESKey needs to be 32 bytes long
DefaultAESKey = "consultls-1234567890-caddytls-32"
// DefaultValuePrefix sets a prefix to KV values to check validation
DefaultValuePrefix = "caddy-storage-consul"
// DefaultTimeout is the default timeout for Consul connections
DefaultTimeout = 10
// EnvNameAESKey defines the env variable name to override AES key
EnvNameAESKey = "CADDY_CLUSTERING_CONSUL_AESKEY"
// EnvNamePrefix defines the env variable name to override KV key prefix
EnvNamePrefix = "CADDY_CLUSTERING_CONSUL_PREFIX"
// EnvValuePrefix defines the env variable name to override KV value prefix
EnvValuePrefix = "CADDY_CLUSTERING_CONSUL_VALUEPREFIX"
)