Matthew Holt
42acdad9e5
Fix error handling with Validate when loading modules ( fixes #2658 )
The return statement was improperly nested in context.go
6 years ago
Matthew Holt
3177ee8010
Add license
6 years ago
Matthew Holt
2b22d2e6ea
Optionally enforce strict TLS SNI + HTTP Host matching, & misc. cleanup
We should look into a way to enable this by default when TLS client auth
is configured for a server
6 years ago
Matthew Holt
6000855c82
Fix panics by disallowing explicitly-defined null modules in config
6 years ago
Matthew Holt
5137859e47
Rename caddy2 -> caddy
Removes the version from the package name
6 years ago
Matthew Holt
1b6b422c63
Add cleanup callbacks to context
6 years ago
Matthew Holt
f976451d19
Disallow unknown fields (strict unmarshal) when loading modules
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
6 years ago
Matthew Holt
2fd98cb040
Module.New() does not need to return an error
6 years ago
dev
043eb1d9e5
move internal packages to pkg folder and update reverse proxy
* set automatic https error type for cert-magic failures
* add state to onload and unload methods
* update reverse proxy to use Provision() and Cleanup()
6 years ago
Matthew Holt
1a20fe330e
Improve godoc for contexts
6 years ago
Matthew Holt
1f0c061ce3
Architectural shift to using context for config and module state
6 years ago