Implement most of static file server; refactor and improve Replacer

This commit is contained in:
Matthew Holt
2019-05-20 10:59:20 -06:00
parent 1a20fe330e
commit fec7fa8bfd
14 changed files with 991 additions and 255 deletions

View File

@ -34,7 +34,7 @@ func Run(newCfg *Config) error {
// modules - essentially our new config's
// execution environment; be sure that
// cleanup occurs when we return if there
// was an error; otherwise, it will get
// was an error; if no error, it will get
// cleaned up on next config cycle
ctx, cancel := NewContext(Context{Context: context.Background(), cfg: newCfg})
defer func() {
@ -139,7 +139,6 @@ type Config struct {
StorageRaw json.RawMessage `json:"storage"`
storage certmagic.Storage
TestVal string `json:"testval"`
AppsRaw map[string]json.RawMessage `json:"apps"`
// apps stores the decoded Apps values,