mirror of
https://github.com/miniflux/v2.git
synced 2025-09-15 18:57:04 +00:00
Set all default config values in config package
This commit is contained in:
parent
6690f6a70e
commit
9ff3c4504c
10 changed files with 34 additions and 15 deletions
|
@ -20,7 +20,7 @@ func NewServer(cfg *config.Config, store *storage.Storage, feedHandler *feed.Han
|
|||
ReadTimeout: 5 * time.Second,
|
||||
WriteTimeout: 10 * time.Second,
|
||||
IdleTimeout: 60 * time.Second,
|
||||
Addr: cfg.Get("LISTEN_ADDR", "127.0.0.1:8080"),
|
||||
Addr: cfg.Get("LISTEN_ADDR", config.DefaultListenAddr),
|
||||
Handler: getRoutes(cfg, store, feedHandler),
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by go generate; DO NOT EDIT.
|
||||
// 2017-11-21 19:31:59.626742594 -0800 PST m=+0.005741442
|
||||
// 2017-11-21 20:18:16.027243814 -0800 PST m=+0.006676650
|
||||
|
||||
package static
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by go generate; DO NOT EDIT.
|
||||
// 2017-11-21 19:31:59.629675274 -0800 PST m=+0.008674122
|
||||
// 2017-11-21 20:18:16.030648994 -0800 PST m=+0.010081830
|
||||
|
||||
package static
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by go generate; DO NOT EDIT.
|
||||
// 2017-11-21 19:31:59.631783539 -0800 PST m=+0.010782387
|
||||
// 2017-11-21 20:18:16.035467739 -0800 PST m=+0.014900575
|
||||
|
||||
package static
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by go generate; DO NOT EDIT.
|
||||
// 2017-11-21 19:31:59.643994492 -0800 PST m=+0.022993340
|
||||
// 2017-11-21 20:18:16.064392532 -0800 PST m=+0.043825368
|
||||
|
||||
package template
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// Code generated by go generate; DO NOT EDIT.
|
||||
// 2017-11-21 19:31:59.633723314 -0800 PST m=+0.012722162
|
||||
// 2017-11-21 20:18:16.038376976 -0800 PST m=+0.017809812
|
||||
|
||||
package template
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue