summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2019-08-14Version 1.0.3 notesv1.0.3Matthew Holt
2019-08-14Fix slice bounds when getting key of address (fixes #2706)Matthew Holt
2019-08-13Version 1.0.2v1.0.2Matthew Holt
2019-08-13Adjust address parsing for Go 1.12.8's breaking changesMatthew Holt
See https://github.com/golang/go/commit/3226f2d492963d361af9dfc6714ef141ba606713 and https://github.com/golang/go/issues/29098
2019-07-19websocket: Enhancements, message types, and tests (#2359)linquize
* websocket: Should reset respawn parameter when processing next config entry * websocket: add message types: lines, text, binary * websocket: Add unit test * Add websocket sample files
2019-07-19readme: Fix tests badgeMatthew Holt
2019-07-18Used goimports to fix import order (#2682)Christian Muehlhaeuser
Keeps the list sorted and prevents future merge conflicts.
2019-07-18Add doc re running as non-root user on FreeBSD (#2655)George Hartzell
Add a README.md in `dist/init/freebsd` that describes how to configure the system so that `caddy` can be run without root privileges.
2019-07-18Use syslog to manage caddy std{out,err} on FreeBSD (#2652)George Hartzell
* Use syslog to manage caddy std{out,err} on FreeBSD There is no good way to rotate the logfile created by the previous FreeBSD rc.d script (it's the result of redirecting std{out,err} and is held open by the shell). This solves the problem by sending caddy's std{out,err} stream to syslog, using the daemon command's builtin functionality. It replaces the old `caddy_logfile` rc.conf variable with `caddy_syslog_facility` (which defaults to 'local7') and `caddy_syslog_level` (which defaults to 'notice'). By default, these messages will end up in /var/log/messages but can be redirected as documented in the script's comments. * Add info about rotating log with newsyslog If you create a caddy specific logfile in `/var/log`, you should rotate it. This adds a bit of info to the dist/init/freebsd/README.md about rotating that log file with newsyslog.
2019-07-18staticfiles: Support pre-compressed zstd, make etag content-encoding-aware ↵rouzier
(#2626) * Add support for precompressed zstd files (rfc8478) * Avoid the hash lookup for the file extension. * Only calculate Etag once
2019-07-18Updated systemd caddy.service (#2620)aspeteRakete
According to https://github.com/systemd/systemd/blob/v241/NEWS#L2799 The Directive ReadWriteDirectories= has been renamed to ReadWritePaths= in 241.
2019-07-11add recaptcha plugin (#2664)William Wang
2019-07-02Update notes for v1.0.1v1.0.1Matthew Holt
2019-07-02Change all import paths: mholt/caddy -> caddyserver/caddyMatthew Holt
Includes updating go.mod to use new module path
2019-07-01tls: Deprecate 'max_certs' in favor of 'ask'; use latest CertMagicMatthew Holt
2019-06-23Fix graceful shutdown (#2618)Damir Vandic
Currently, the instance waitgroup is decremented twice in `startServers()`: once when `Serve()` is finished and once when `ServePacket()` is finished. However, with a graceful shutdown, `Serve()` returns before the server has actually finished shutting down all active connections. This patch increases the wait group by one when the server is shut down so that the program only exits when all the server instances have finished serving their connections.
2019-06-21mod: Use CertMagic v0.6.1Matthew Holt
2019-06-21caddyfile: Move metrics into caddy packageMatthew Holt
2019-06-19Minor fixes to testsMatthew Holt
2019-06-19tls: Disable on-demand TLS when random config is chosenMatthew Holt
A random config is intended to be used only for solving TLS-ALPN challenges; so we have to be sure to disable on-demand TLS so that arbitrary names can't request certificates with another name's on-demand config.
2019-06-19Refactor clustering setup codeMatthew Holt
2019-06-19Use CertMagic's HTTP and HTTPS port variableMatthew Holt
Slightly inconvenient because it uses int type and we use string, but oh well. This fixes a bug related to setting -http-port and -https-port flags which weren't being used by CertMagic in some cases.
2019-06-19Clean up certmagic locks on signaled process exitMatthew Holt
This should help prevent hanging in some cases when the process is restarted and tries to obtain or renew a certificate, for example, but the lock remains from the previous shutdown (which was during the same operation). Only works if the process is cleanly shut down with a signal it can capture.
2019-06-19tls: Allow client auth configs if CA filenames match (#2648)shouya
* verify client certs * move client cert compatible checker to an independent function * unexport client cert compatible checker * rename functions and add comment * gofmt code * add test * add back the comment
2019-06-12caddyhttp: Add 'permission' plugin directive (#2639)Daniel
2019-06-11caddytls: Fix goroutine leak when restarting Caddy (#2644)Jared Ririe
Each time the Caddyfile reloads and Caddy is restarted, caddytls.NewConfig starts a goroutine for cleaning the certificate storage. This goroutine ranges over a time.Ticker channel; although Stop is called on this ticker, Stop does not close the underlying channel so the goroutine never exits. This change adds an additional channel that is listened to in the certificate cleaning goroutine so it can exit on restarts.
2019-05-27Fix panic serving index file if HTTP request is malformedMatthew Holt
2019-05-27Move PR template in attempt to fix (sigh)Matthew Holt
https://github.community/t5/How-to-use-Git-and-GitHub/Our-pull-request-templates-aren-t-showing-up-for-any-PRs/m-p/22958
2019-05-24Simple rewrite regex captures (#2592)AndreKR
* More informative rewrite test output When running rewrite tests, the output in case of a test failure now includes not only the rewritten URLs but also the from URL. * Move re-escaping to regexpMatches This commit moves the code to post-process the match replacements from ComplexRule to regexpMatches, so it can later be re-used for SimpleRule. Also changes the comment in an attempt to better explain the reasoning behind that code. The required strings.Replacer is now built only once. * Support regex captures in simple rewrite rules Closes #2586
2019-05-24gzip: Add .wasm (WebAssembly files) (#2624)Łukasz Nowak
2019-05-13readme: clarify about Go file to build Caddy (#2611)Anthony Plunkett
2019-04-26httpserver: Add pubsub plugin (#2589)Kurt Jung
2019-04-241.0 releasev1.0.0Matthew Holt
2019-04-22fix lint warnings (issue 2541) (#2551)Taufiq Rahman
* Lint: fix some errcheck #2541 * Lint: fix passing structcheck #2541 * Lint: update fix structcheck #2541 * Lint: fix errcheck for basicauth, browse, fastcgi_test #2541 * Lint: fix errcheck for browse, fastcgi_test, fcgiclient, fcgiclient_test #2541 * Lint: fix errcheck for responsefilter_test, fcgilient_test #2541 * Lint: fix errcheck for header_test #2541 * Lint: update errcheck for fcgiclient_test #2541 * Lint: fix errcheck for server, header_test, fastcgi_test, https_test, recorder_test #2541 * Lint: fix errcheck for tplcontext, vhosttrie_test, internal_test, handler_test #2541 * Lint: fix errcheck for log_test, markdown mholt#2541 * Lint: fix errcheck for policy, body_test, proxy_test #2541 * Lint: fix errcheck for on multiple packages #2541 - reverseproxy - reverseproxy_test - upstream - upstream_test - body_test * Lint: fix errcheck in multiple packages mholt#2541 - handler_test - redirect_test - requestid_test - rewrite_test - fileserver_test * Lint: fix errcheck in multiple packages mholt#2541 - websocket - setup - collection - redirect_test - templates_test * Lint: fix errcheck in logger test #2541 run goimports against #2551 - lexer_test - log_test - markdown * Update caddyhttp/httpserver/logger_test.go Co-Authored-By: Inconnu08 <[email protected]> * Update log_test.go * Lint: fix scope in logger_test #2541 * remove redundant err check in logger_test #2541 * fix alias in logger_test #2541 * fix import for format #2541 * refactor variable names and error check #2541
2019-04-20I just learned about go mod tidyMatthew Holt
2019-04-20Release beta2v1.0.0-beta2Matthew Holt
2019-04-20tls: Update to match CertMagic refactor (#2571)Matt Holt
* Update to match CertMagic's refactoring * mod: CertMagic v0.5.0
2019-04-20Remove now-unnecessary build.goMatthew Holt
Caddy can be built, even with plugins, without modifying the source code and without special build scripts, thanks to Go modules. See the README or wiki.
2019-04-20Merge pull request #2570 from whalehub/patch-1Abiola Ibrahim
Fix instructions for building Caddy from source
2019-04-20Fix instructions for building Caddy from sourceAaron
2019-04-20readme: Update build-from-source instructions for Go modulesMatthew Holt
2019-04-20main: Use embedded version, debug.BuildInfoMatthew Holt
2019-04-20Remove now-unused gitcookieMatthew Holt
2019-04-17mod: import the right version of quic-go and tidy (#2562)Marten Seemann
* run go mod tidy * import the right version of quic-go
2019-04-12readme: Update build instructions (#2565)elcore
Fix #2560
2019-04-09Prepare 1.0beta1 releasev1.0.0-beta1Matthew Holt
2019-04-09readme: Add link to Good First Issue (#2481)Toby Allen
* Add link to Good First Issue in Contributing Section * Fix heading
2019-04-07caddytls: sort import statement (#2552)johncming
2019-04-06ci: Enable use of Go modulesMatthew Holt
Temporary until Go 1.13
2019-03-29httpserver: remove unused listener field (#2527)johncming