summaryrefslogtreecommitdiff
path: root/context.go
AgeCommit message (Collapse)Author
2019-08-21Refactor Caddyfile adapter and module registrationMatthew Holt
Use piles from which to draw config values. Module values can return their name, so now we can do two-way mapping from value to name and name to value; whereas before we could only map name to value. This was problematic with the Caddyfile adapter since it receives values and needs to know the name to put in the config.
2019-07-07Fix error handling with Validate when loading modules (fixes #2658)Matthew Holt
The return statement was improperly nested in context.go
2019-06-30Add licenseMatthew Holt
2019-06-26Optionally enforce strict TLS SNI + HTTP Host matching, & misc. cleanupMatthew Holt
We should look into a way to enable this by default when TLS client auth is configured for a server
2019-06-26Fix panics by disallowing explicitly-defined null modules in configMatthew Holt
2019-06-14Rename caddy2 -> caddyMatthew Holt
Removes the version from the package name
2019-05-29Add cleanup callbacks to contextMatthew Holt
2019-05-22Disallow unknown fields (strict unmarshal) when loading modulesMatthew Holt
This makes it faster and easier to detect broken configurations, but is a slight performance hit on config loads since we have to re-encode the decoded struct back into JSON without the module name's key
2019-05-21Module.New() does not need to return an errorMatthew Holt
2019-05-20move internal packages to pkg folder and update reverse proxydev
* set automatic https error type for cert-magic failures * add state to onload and unload methods * update reverse proxy to use Provision() and Cleanup()
2019-05-17Improve godoc for contextsMatthew Holt
2019-05-16Architectural shift to using context for config and module stateMatthew Holt