Age | Commit message (Collapse) | Author | |
---|---|---|---|
2020-04-22 | caddyhttp: Fix common_log format's user ID placeholder (#3300) | Francis Lavoie | |
2020-04-21 | reverseproxy: always set req.URL.Host with upstream (#3297) | westwin | |
2020-04-21 | docs: Minor improvements | Matthew Holt | |
2020-04-17 | reverseproxy: Set X-Forwarded-Proto (closes #3275) (#3276) | Matt Holt | |
2020-04-14 | httpcaddyfile: Don't lowercase placeholder contents (fixes #3264) | Matthew Holt | |
2020-04-13 | core: Don't return error on RegisterModule() and RegisterAdapter() | Matthew Holt | |
These functions are called at init-time, and their inputs are hard-coded so there are no environmental or user factors that could make it fail or succeed; the error return values are often ignored, and when they're not, they are usually a fatal error anyway. To ensure that a programmer mistake is not missed, we now panic instead. Last breaking change 🤞 | |||
2020-04-11 | Fix some godocs | Matthew Holt | |
2020-04-10 | caddyhttp: Add nil check (fixes #3248 and fixes #3250) | Matthew Holt | |
2020-04-09 | reverseproxy: Minor tweaks | Matthew Holt | |
We'll need that context in v2.1 when the transport can manage its own client certificates; see #3198 | |||
2020-04-09 | caddytls: Don't initialize default internal issuer unless necessary | Matthew Holt | |
Otherwise, a password prompt can occur unnecessarily. | |||
2020-04-08 | caddyhttp: CEL matcher checks return type; slight refactor | Matthew Holt | |
As per https://github.com/caddyserver/caddy/issues/3051#issuecomment-611200414 | |||
2020-04-08 | chore: make the linter happier (#3245) | Mohammed Al Sahaf | |
* chore: make the linter happier * chore: remove reference to maligned linter in .golangci.yml | |||
2020-04-08 | caddyhttp: Fix logging name associations by adding a default | Matthew Holt | |
2020-04-08 | cel: Leverage DefaultAdapter to extend CEL's type system | Matthew Holt | |
Thanks to @TristonianJones for the tip! https://github.com/caddyserver/caddy/commit/105acfa08664c97460a6fe3fb49635618be5bcb2#r38358983 | |||
2020-04-08 | caddyhttp: Return port placeholders as ints | Matthew Holt | |
2020-04-07 | basicauth: Re-prompt after invalid credentials (fix #3239) (#3240) | Matt Holt | |
2020-04-07 | templates: Update docs | Matthew Holt | |
2020-04-07 | templates: Add env function (closes #3237) | Matthew Holt | |
2020-04-07 | Merge branch 'remove-ntlm' | Matthew Holt | |
2020-04-07 | reverseproxy: Remove NTLM transport; refactor and improve docs | Matthew Holt | |
2020-04-07 | core: Rename ParsedAddress -> NetworkAddress | Matthew Holt | |
2020-04-06 | docs: Clarify "not" matcher structure (see #3233) | Matthew Holt | |
2020-04-06 | caddyhttp: Add missing LB policy Caddyfile unmarshalers (#3230) | Francis Lavoie | |
2020-04-06 | caddyhttp: Strictly forbid unnecessary blocks on matchers (#3229) | Francis Lavoie | |
2020-04-06 | caddyhttp: Support single-line not matcher (#3228) | Francis Lavoie | |
* caddyhttp: Support single-line not matcher shortcut * caddyhttp: Some tests, I guess | |||
2020-04-06 | templates: Use text/template; add experimental notice to docs | Matthew Holt | |
Using html/template.HTML like we were doing before caused nested include to be HTML-escaped, which breaks sites. Now we do not escape any of the output; template input is usually trusted, and if it's not, users should employ escaping actions within their templates to keep it safe. The docs already said this. | |||
2020-04-03 | fastcgi: Account for lack of split path configuration (fix #3221) | Matthew Holt | |
2020-04-01 | gzip: Use klauspost/gzip, an optimized gzip implementation | Matthew Holt | |
2020-04-01 | caddytls: Update cipher suite names and curve names | Matthew Holt | |
Now using IANA-compliant names and Go 1.14's CipherSuites() function so we don't have to maintain our own mapping of currently-secure cipher suites. | |||
2020-04-01 | caddyhttp: Print actual listener address in log message (closes #2992) | Matthew Holt | |
Needed if port is 0, thus chosen by OS | |||
2020-04-01 | caddyhttp: Update host matcher docs about wildcards | Matthew Holt | |
2020-04-01 | caddyhttp: 'not' matcher now accepts multiple matcher sets and OR's them (#3208) | Matt Holt | |
See https://caddy.community/t/v2-matcher-or-in-not/7355/ | |||
2020-04-01 | rewrite: Fix for rewrites with URI placeholders (#3209) | Matthew Holt | |
If a placeholder in the path component injects a query string such as the {http.request.uri} placeholder is wont to do, we need to separate it out from the path. | |||
2020-03-30 | caddyhttp: Rename MatchNegate type to MatchNot type | Matthew Holt | |
This is more congruent with its module name. A change that affects only code, not configurations. | |||
2020-03-30 | headers: Trim any trailing colon from field names as a courtesy | Matthew Holt | |
2020-03-30 | Keep type information with placeholders until replacements happen | Matthew Holt | |
2020-03-28 | httpcaddyfile: Put root directive first, before redir and rewrite | Matthew Holt | |
See https://caddy.community/t/v2-match-any-path-but-files/7326/8?u=matt If rewrites (or redirects, for that matter) match on file existence, the file matcher would need to know the root of the site. Making this change implies that root directives that depend on rewritten URIs will not work as expected. However, I think this is very uncommon, and am not sure I have ever seen that. Usually, dynamic roots are based on host, not paths or query strings. I suspect that rewrites based on file existence will be more common than roots based on rewritten URIs, so I am moving root to be the first in the list. Users can always override this ordering with the 'order' global option. | |||
2020-03-27 | reverse_proxy: Upstream.String() method returns either LookupSRV or Dial | Matthew Holt | |
Either Dial or LookupSRV will be set, but if we rely on Dial always being set, we could run into bugs. Note: Health checks don't support SRV upstreams. | |||
2020-03-27 | caddyauth: Add Metadata field to caddyauth.User (#3174) | Robin Lambertz | |
* caddyauth: Add Metadata field to caddyauth.User * Apply gofmt * Tidy it up a bit Co-authored-by: Matthew Holt <mholt@users.noreply.github.com> | |||
2020-03-24 | file_server: Fix dumb error check I must have written at 1am | Matthew Holt | |
2020-03-24 | caddyhttp: Specify default access log for a server (fix #3185) | Matthew Holt | |
2020-03-24 | reverse_proxy: Add support for SRV backends (#3180) | Matt Holt | |
* reverse_proxy: Begin SRV lookup support (WIP) * reverse_proxy: Finish adding support for SRV-based backends (#3179) | |||
2020-03-24 | Remove some non-essential plugins from this repo (#2780) | Matthew Holt | |
Brotli encoder, jsonc and json5 config adapters, and the unfinished HTTP cache handler are removed. They will be available in separate repos. | |||
2020-03-24 | fastcgi: Add debug log (#3178) | Matthew Holt | |
2020-03-23 | fastcgi: Ensure root is always absolute (issue #3178) (#3182) | Matt Holt | |
2020-03-23 | fastcgi: Fix PATH_INFO (issue #3178) | Matthew Holt | |
2020-03-23 | caddyhttp: Always provision ACME issuers (fix terms agree error) | Matthew Holt | |
2020-03-22 | fastcgi: Support multiple path splitters (close #1564) | Matthew Holt | |
2020-03-20 | tls/http: Fix auto-HTTPS logic w/rt default issuers (fixes #3164) | Matthew Holt | |
The comments in the code should explain the new logic thoroughly. The basic problem for the issue was that we were overriding a catch-all automation policy's explicitly-configured issuer with our own, for names that we thought looked like public names. In other words, one could configure an internal issuer for all names, but then our auto HTTPS would create a new policy for public-looking names that uses the default ACME issuer, because we assume public<==>ACME and nonpublic<==>Internal, but that is not always the case. The new logic still assumes nonpublic<==>Internal (on catch-all policies only), but no longer assumes that public-looking names always use an ACME issuer. Also fix a bug where HTTPPort and HTTPSPort from the HTTP app weren't being carried through to ACME issuers properly. It required a bit of refactoring. | |||
2020-03-20 | go.mod: Update some deps; add new Strings lib to CEL matcher | Matthew Holt | |