Matthew Holt
5137859e47
Rename caddy2 -> caddy
Removes the version from the package name
6 years ago
Matthew Holt
b79f86f256
Fix bugs related to auto HTTPS and alternate port configurations
6 years ago
Matthew Holt
613aecb898
Change import paths to GitHub package names
6 years ago
Matthew Holt
da6a8cfc86
Minor cleanups
6 years ago
Matthew Holt
9e576c76e7
Add request_body middleware and some limits to HTTP servers
6 years ago
Matthew Holt
869fbac632
Don't use auto HTTPS for servers with only HTTP port listeners
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
aaacab1bc3
Sanitize paths in static file server; some cleanup
Also remove AutomaticHTTPSError for now
6 years ago
Matthew Holt
22995e5655
Implement most of browse; fix a couple obvious bugs; some cleanup
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
1f0c061ce3
Architectural shift to using context for config and module state
6 years ago
Matthew Holt
f9d93ead4e
Rename and export some types, other minor changes
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
5859cd8dad
Instantiate apps that are needed but not explicitly configured
6 years ago
Matthew Holt
2d056fbe66
Initial commit of Storage, TLS, and automatic HTTPS implementations
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
Matthew Holt
27ff6aeccb
Fix goroutine leak in Run
D'oh, the servers' Shutdown() would never be called because they were
never added to the list of servers.
Thanks Danny for finding this.
6 years ago
Matthew Holt
a8dc73b4d9
Performance testing Load function
6 years ago
Matthew Holt
86e2d1b0a4
Rudimentary start of HTTP servers
6 years ago
Matthew Holt
859b5d7ea3
Initial commit
6 years ago