@@ -45,21 +45,21 @@ var (
45
45
type Server struct {
46
46
//config
47
47
Title string `opts:"help=Title of this instance,env=TITLE"`
48
- Port int `opts:"help=Listening port(depreciated . use --listen),env=PORT"`
49
- Host string `opts:"help=Listening interface (depreciated . use --listen) ,env=HOST"`
48
+ Port int `opts:"help=Depreciated . use --listen. Listening port( ),env=PORT"`
49
+ Host string `opts:"help=Depreciated . use --listen. Listening interface ,env=HOST"`
50
50
Listen string `opts:"help=Listening Address:Port or unix socket (default all),env=LISTEN"`
51
51
UnixPerm string `opts:"help=DomainSocket file permission (default 0666),env=UNIXPERM"`
52
52
Auth string `opts:"help=Optional basic auth in form 'user:password',env=AUTH"`
53
53
ProxyURL string `opts:"help=Proxy url,env=PROXY_URL"`
54
- ConfigPath string `opts:"help=Configuration file path (default ./cloud-torrent.yaml)"`
54
+ ConfigPath string `opts:"help=Configuration file path (default ./cloud-torrent.yaml),short=c,env=CONFIGPATH "`
55
55
KeyPath string `opts:"help=TLS Key file path"`
56
56
CertPath string `opts:"help=TLS Certicate file path,short=r"`
57
57
RestAPI string `opts:"help=Listen on a trusted port accepts /api/ requests (eg. localhost:3001),env=RESTAPI"`
58
- Log bool `opts:"help=Enable request logging"`
58
+ ReqLog bool `opts:"help=Enable request logging,env=REQLOG "`
59
59
Open bool `opts:"help=Open now with your default browser"`
60
- DisableLogTime bool `opts:"help=Don't print timestamp in log"`
61
- Debug bool `opts:"help=Debug app"`
62
- DebugTorrent bool `opts:"help=Debug torrent engine"`
60
+ DisableLogTime bool `opts:"help=Don't print timestamp in log,env=DISABLELOGTIME "`
61
+ Debug bool `opts:"help=Debug app,env=DEBUG "`
62
+ DebugTorrent bool `opts:"help=Debug torrent engine,env=DEBUGTORRENT "`
63
63
ConvYAML bool `opts:"help=Convert old json config to yaml format."`
64
64
65
65
//http handlers
@@ -248,7 +248,7 @@ func (s *Server) Run(version string) error {
248
248
h = cookieauth .New ().SetUserPass (user , pass ).Wrap (h )
249
249
log .Printf ("Enabled HTTP authentication" )
250
250
}
251
- if s .Log {
251
+ if s .ReqLog {
252
252
h = requestlog .Wrap (h )
253
253
}
254
254
0 commit comments