caddy/caddyhttp/httpserver
Matthew Holt e0f1a02c37
Extract most of caddytls core code into external CertMagic package
All code relating to a caddytls.Config and setting it up from the
Caddyfile is still intact; only the certificate management-related
code was removed into a separate package.

I don't expect this to build in CI successfully; updating dependencies
and vendor is coming next.

I've also removed the ad-hoc, half-baked storage plugins that we need
to finish making first-class Caddy plugins (they were never documented
anyway). The new certmagic package has a much better storage interface,
and we can finally move toward making a new storage plugin type, but
it shouldn't be configurable in the Caddyfile, I think, since it doesn't
make sense for a Caddy instance to use more than one storage config...

We also have the option of eliminating DNS provider plugins and just
shipping all of lego's DNS providers by using a lego package (the
caddytls/setup.go file has a comment describing how) -- but it doubles
Caddy's binary size by 100% from about 19 MB to around 40 MB...!
2018-12-10 19:49:29 -07:00
..
condition.go redir: Do not count multiple rules with if statements as duplicates 2017-09-28 11:41:11 -06:00
condition_test.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
error.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
https.go Extract most of caddytls core code into external CertMagic package 2018-12-10 19:49:29 -07:00
https_test.go Extract most of caddytls core code into external CertMagic package 2018-12-10 19:49:29 -07:00
logger.go log: 'except' subdirective to skip logging certain requests (#2028) 2018-03-26 17:17:43 -06:00
logger_test.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
middleware.go httpserver: give each req context a Replacer that preserves custom values (#1937) 2017-11-07 10:10:03 -07:00
middleware_test.go Change CASE_SENSITIVE_PATH default to false 2017-10-08 22:19:35 -06:00
mitm.go tls: Add support for the tls-alpn-01 challenge (#2201) 2018-12-05 17:33:23 -07:00
mitm_test.go telemetry: Fix MITM tests 2018-05-07 16:42:35 -06:00
path.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
path_test.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
plugin.go Extract most of caddytls core code into external CertMagic package 2018-12-10 19:49:29 -07:00
plugin_test.go Revert "bind: support multiple values (#2128)" 2018-11-27 15:57:38 -07:00
recorder.go ResponseBuffer: add missing header writing (#1997) 2018-01-15 18:32:19 -07:00
recorder_test.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
replacer.go Adding {when_unix_ms} requests placeholder (unix timestamp with a milliseconds precision) (#2260) 2018-08-28 11:08:55 +01:00
replacer_test.go Adding {when_unix_ms} requests placeholder (unix timestamp with a milliseconds precision) (#2260) 2018-08-28 11:08:55 +01:00
responsewriterwrapper.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
roller.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
server.go Extract most of caddytls core code into external CertMagic package 2018-12-10 19:49:29 -07:00
server_test.go httpserver: Fix #2038 (query string being lost from URI) (#2039) 2018-03-17 17:17:42 -06:00
siteconfig.go Revert "bind: support multiple values (#2128)" 2018-11-27 15:57:38 -07:00
tplcontext.go templates: TLSVersion (#2323) 2018-10-19 11:51:10 -06:00
tplcontext_test.go templates: TLSVersion (#2323) 2018-10-19 11:51:10 -06:00
vhosttrie.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00
vhosttrie_test.go Apply Apache license to all .go source files (closes #1865) 2017-09-22 23:56:58 -06:00