Re-enable config files
parent
8c415f2a39
commit
7d3d6d88f6
22
conf.yaml
22
conf.yaml
|
|
@ -1,11 +1,11 @@
|
||||||
p: 54243
|
user: ""
|
||||||
r:
|
pass: ""
|
||||||
- echo:http://localhost:49982
|
port: 51555
|
||||||
- echo2:http://192.168.0.86:38090
|
r: 100
|
||||||
#crt: ./testdata/rproxy3server.crt
|
b: 100
|
||||||
#key: ./testdata/rproxy3server.key
|
crt: ""
|
||||||
#user: bel
|
key: ""
|
||||||
#pass: bel
|
tcp: ""
|
||||||
rate: 1
|
timeout: 1m
|
||||||
burst: 2
|
proxy: a,http://localhost:41912,,b,http://localhost:41912
|
||||||
timeout: 10
|
oauth: http://localhost:23456
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,11 @@ func Refresh() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func parseArgs() (*args.ArgSet, error) {
|
func parseArgs() (*args.ArgSet, error) {
|
||||||
as := args.NewArgSet()
|
configFiles := []string{}
|
||||||
|
if v, ok := os.LookupEnv("CONFIG"); ok {
|
||||||
|
configFiles = strings.Split(v, ",")
|
||||||
|
}
|
||||||
|
as := args.NewArgSet(configFiles...)
|
||||||
|
|
||||||
as.Append(args.STRING, "user", "username for basic auth", "")
|
as.Append(args.STRING, "user", "username for basic auth", "")
|
||||||
as.Append(args.STRING, "pass", "password for basic auth", "")
|
as.Append(args.STRING, "pass", "password for basic auth", "")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue