0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00
caddy/caddyhttp/httpserver
Matthew Holt 4462e3978b
httpserver: max_certs now forces On-Demand TLS even if name is known
Original feature request in forum:
https://forum.caddyserver.com/t/caddy-with-specific-hosts-but-on-demand-tls/1704?u=matt

Before, Caddy obtained certificates for every name it could at startup.
And it would only obtain certificates during the handshake for sites
defined with a hostname that didn't qualify at startup (like
"*.example.com" or ":443"). This made sense for most situations, and
helped ensure that certificates were obtained as early and reliably as
possible.

With this change, Caddy will NOT obtain certificates for hostnames it
knows at startup (even if they qualify) if OnDemand is enabled.

But I think this change generalizes well, because a user who specifies
max_certs is deliberately turning on On-Demand TLS, fully aware of
the consequences. It seems dubious to ignore that config when the user
deliberately put it there. We'll see how this goes.
2017-04-17 19:53:15 -06:00
..
condition.go Fix small misspellings 2017-01-10 13:09:24 -08:00
condition_test.go Fix misspellings 2016-09-05 10:20:34 -06:00
context.go D'oh, commit all changes to file 2017-04-15 22:58:34 -06:00
context_test.go Adding support for ServerIP context 2017-03-07 11:59:26 +00:00
error.go add more descriptive errors 2016-10-11 10:34:51 +08:00
https.go httpserver: max_certs now forces On-Demand TLS even if name is known 2017-04-17 19:53:15 -06:00
https_test.go httpserver: Flags to customize HTTP and HTTPS ports (incl. for ACME) 2017-03-06 18:18:49 -07:00
logger.go Feature #1246 - Remote syslog (#1301) 2017-02-08 08:02:09 -07:00
logger_test.go Feature #1246 - Remote syslog (#1301) 2017-02-08 08:02:09 -07:00
middleware.go Added Const for use of CtxKeys (#1511) 2017-03-13 09:22:46 -06:00
middleware_test.go Rewrote Caddy from the ground up; initial commit of 0.9 branch 2016-06-04 17:00:29 -06:00
mitm.go Added Const for use of CtxKeys (#1511) 2017-03-13 09:22:46 -06:00
mitm_test.go Added Const for use of CtxKeys (#1511) 2017-03-13 09:22:46 -06:00
path.go Proposal: Middleware Config (#908) 2016-07-08 18:12:52 -06:00
pathcleaner.go Implementing custom PathClean function to allow masking, closes #1298 (#1317) 2016-12-31 20:29:14 -07:00
pathcleaner_test.go proxy: Fix #1574; health check now respects hostname when upstream Host header is configured (#1577) 2017-04-17 09:58:47 -06:00
plugin.go caddyhttp: New index directive for alternate index file names (#1567) 2017-04-17 11:02:44 -06:00
plugin_test.go Add tests for case insensitivity of keys and saving contexts 2016-09-24 13:24:33 -06:00
recorder.go HTTP/2 push support (golang 1.8) (#1215) 2017-02-17 09:25:22 -07:00
recorder_test.go Rewrote Caddy from the ground up; initial commit of 0.9 branch 2016-06-04 17:00:29 -06:00
replacer.go Added Const for use of CtxKeys (#1511) 2017-03-13 09:22:46 -06:00
replacer_test.go Added Const for use of CtxKeys (#1511) 2017-03-13 09:22:46 -06:00
roller.go Roll all logs by default (#1379) 2017-02-08 09:23:33 -07:00
server.go Don't modify request URL values from Caddyfile (fixes #1528) 2017-03-20 21:05:11 -06:00
server_test.go tls: Refactor internals related to TLS configurations (#1466) 2017-02-21 09:49:22 -07:00
siteconfig.go Add proxyprotocol directive and listener middleware plugin type (#1349) 2017-03-09 22:31:37 -07:00
vhosttrie.go Don't treat localhost specially when assigning bind address 2016-06-27 13:14:28 -06:00
vhosttrie_test.go Rewrote Caddy from the ground up; initial commit of 0.9 branch 2016-06-04 17:00:29 -06:00