File tree 3 files changed +7
-8
lines changed
3 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,6 @@ func Run(c Config) error {
72
72
//custom middleware stack
73
73
//3. basic-auth middleware
74
74
if c .User != "" || c .Pass != "" {
75
- log .Printf ("cookieauth" )
76
75
h = cookieauth .Wrap (h , c .User , c .Pass )
77
76
}
78
77
//2. ipfilter middlware
Original file line number Diff line number Diff line change @@ -27,16 +27,16 @@ const (
27
27
28
28
type Config struct {
29
29
Host string `help:"listening interface"`
30
- Port int `help:"listening port"`
31
- User string `help:"basic auth username"`
32
- Pass string `help:"basic auth password"`
30
+ Port int `help:"listening port" env:"PORT" `
31
+ User string `help:"basic auth username" env:"USER" `
32
+ Pass string `help:"basic auth password" env:"PASS" `
33
33
AllowedIPs []string `opts:"-"`
34
34
ProgramArgs []string `type:"arglist" min:"1" name:"args" help:"args can be either a command with arguments or a webproc file"`
35
35
Log Log `opts:"-"`
36
36
OnExit OnExit `help:"process exit action" default:"proxy"`
37
37
ConfigurationFiles []string `name:"config" type:"commalist" help:"comma-separated list of configuration files"`
38
- VerifyProgramArgs []string `name:"verify" type:"spacelist" help:"command used to verify configuration"`
39
- RestartTimeout Duration `opts:"-"`
38
+ // VerifyProgramArgs []string `name:"verify" type:"spacelist" help:"command used to verify configuration"`
39
+ RestartTimeout Duration `opts:"-"`
40
40
}
41
41
42
42
func LoadConfig (path string , c * Config ) error {
Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ OnExit = "proxy"
33
33
# For example, dnsmasq would include "/etc/dnsmasq.conf"
34
34
ConfigurationFiles = []
35
35
36
- # When provided, this command will be used verify all configuration changes
36
+ # TODO When provided, this command will be used verify all configuration changes
37
37
# before restarting the process. An exit code 0 means valid, otherwise it's assumed invalid.
38
- VerifyProgramArgs = []
38
+ # VerifyProgramArgs = []
39
39
40
40
# After the restart signal (SIGINT) has been sent, webproc will wait for RestartTimeout before
41
41
# forcibly restarting the process (SIGKILL).
You can’t perform that action at this time.
0 commit comments