0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00
caddy/caddyhttp
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
..
basicauth Added Const for use of CtxKeys (#1511) 2017-03-13 09:22:46 -06:00
bind Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
browse browse: Use more standard sort icon over icons 2017-04-14 16:11:26 -06:00
errors Roll all logs by default (#1379) 2017-02-08 09:23:33 -07:00
expvar Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
extensions Fix misspellings 2016-09-05 10:20:34 -06:00
fastcgi Added Const for use of CtxKeys (#1511) 2017-03-13 09:22:46 -06:00
gzip staticfiles: add Content-Length header (closes #1479) (#1492) 2017-03-12 16:41:49 -06:00
header HTTP/2 push support (golang 1.8) (#1215) 2017-02-17 09:25:22 -07:00
httpserver httpserver: max_certs now forces On-Demand TLS even if name is known 2017-04-17 19:53:15 -06:00
index caddyhttp: New index directive for alternate index file names (#1567) 2017-04-17 11:02:44 -06:00
internalsrv Feature #1246 - Remote syslog (#1301) 2017-02-08 08:02:09 -07:00
log log: only allow new roller related options in a block 2017-04-17 16:55:45 +08:00
markdown markdown: Match index file for each extension; fix #1418 (#1559) 2017-04-08 00:47:33 -06:00
maxrequestbody Add maxrequestbody directive (#1163) 2016-11-04 08:25:49 +08:00
mime Refactor how caddy.Context is stored and used 2016-06-20 11:59:23 -06:00
pprof pprof: Set proper Content-Type header 2017-01-24 16:55:43 -07:00
proxy proxy: Fix #1574; health check now respects hostname when upstream Host header is configured (#1577) 2017-04-17 09:58:47 -06:00
push Push down headers from client (#1453) 2017-02-18 15:50:36 -07:00
redirect Merge pull request #1365 from tw4452852/1297 2017-02-15 17:59:29 -07:00
rewrite Added Const for use of CtxKeys (#1511) 2017-03-13 09:22:46 -06:00
root fixing panic when root is symlink (#1429) 2017-02-15 22:02:51 -07:00
staticfiles browse: Use helper functions in staticfiles to redirect (#1497) 2017-03-15 10:17:12 -06:00
status Add 'status' middleware instead of 'status' directive for 'rewrite' middleware 2016-08-29 17:17:23 +03:00
templates templates: Set right response Content-Type 2017-03-07 11:11:52 +08:00
timeouts New 'timeouts' directive to configure timeouts; default timeouts enabled (#1368) 2017-01-24 08:15:25 -07:00
websocket Fix misspellings 2016-09-05 10:20:34 -06:00
caddyhttp.go caddyhttp: New index directive for alternate index file names (#1567) 2017-04-17 11:02:44 -06:00
caddyhttp_test.go caddyhttp: New index directive for alternate index file names (#1567) 2017-04-17 11:02:44 -06:00