Matthew Holt
6d0350d04e
caddyhttp: Fix host matching when host has a port
6 years ago
Matthew Holt
5137859e47
Rename caddy2 -> caddy
Removes the version from the package name
6 years ago
Matthew Holt
613aecb898
Change import paths to GitHub package names
6 years ago
Matthew Holt
39db06d9c4
Implement IP/CIDR matcher and Not (negated) matcher
6 years ago
Matthew Holt
bf54615efc
ResponseMatcher for conditional logic of response headers
6 years ago
Matthew Holt
284fb3a98c
Allow multiple matcher sets in routes (OR'ed together)
Also export MatchRegexp in case other matcher modules find it useful.
Add comments to the exported matchers.
6 years ago
Matthew Holt
bc00d840e8
Export types and fields necessary to build configs (for config adapters)
Also flag most fields with 'omitempty' for JSON marshaling
6 years ago
Matthew Holt
2fd98cb040
Module.New() does not need to return an error
6 years ago
Matthew Holt
9d54f655aa
Take care of remaining TODOs in the browse responder
6 years ago
dev
043eb1d9e5
move internal packages to pkg folder and update reverse proxy
* set automatic https error type for cert-magic failures
* add state to onload and unload methods
* update reverse proxy to use Provision() and Cleanup()
6 years ago
Matthew Holt
fec7fa8bfd
Implement most of static file server; refactor and improve Replacer
6 years ago
Matthew Holt
ff5b4639d5
Some minor updates, and get rid of OnLoad/OnUnload
6 years ago
Matthew Holt
8ae0d6a509
caddyhttp: Implement better HTTP matchers including regexp; add tests
6 years ago
Matthew Holt
e40bbecb16
Rough implementation of auto HTTP->HTTPS redirects
Also added GracePeriod for server shutdowns
6 years ago
Matthew Holt
2eb3593327
Begin implementing HTTP replacer and static responder
6 years ago
Matthew Holt
545f28008e
Begin implementing error handling and re-handling
6 years ago
dev
27ecc7f384
Protocol and Caddyscript matchers
* Added matcher to determine what protocol the request is being made by
- grpc, tls, http
* Added ability to run caddyscript in a matcher to evaluate the http request
* Added TLS field to caddyscript request time
* Added a library to manipulate and compare a new caddyscript time type
* Library for regex in starlark
6 years ago
Matthew Holt
6621406fa8
Very basic middleware and route matching functionality
6 years ago