Matthew Holt
b780f0f49b
Standardize exit codes and improve shutdown handling; update gitignore
6 years ago
Matthew Holt
4eb5fc541b
Better error handling in CLI commands
6 years ago
Matthew Holt
9429c843c8
cmd: New reload command
6 years ago
Matthew Holt
fdd871e177
go.mod: Append /v2 to module name; update all import paths
See https://github.com/golang/go/wiki/Modules#semantic-import-versioning
6 years ago
Matthew Holt
3177ee8010
Add license
6 years ago
Matthew Holt
31ab737bf2
Refactor code related to getting current version
And set version in CertMagic for User-Agent purposes
6 years ago
Matthew Holt
a4bdf249db
Caddy 2 gets a CLI! And admin endpoint is now configurable via JSON
6 years ago
Matthew Holt
6706c9225a
Implement templates handler; various minor cleanups and bug fixes
6 years ago
Matthew Holt
5137859e47
Rename caddy2 -> caddy
Removes the version from the package name
6 years ago
Matthew Holt
b8e7453fef
Implement brotli encoder; improve validation of other encoders
6 years ago
Matthew Holt
f93dab755b
Update go modules
6 years ago
Matt Holt
f5b4f268dc
Implement encode middleware ( #2 )
* Implement encode middleware
* Add missing break; and add missing JSON struct field tag
6 years ago
Matthew Holt
613aecb898
Change import paths to GitHub package names
6 years ago
Matthew Holt
f064889a4f
Customize admin endpoint address with -listen flag
This is a temporary holdover for development purposes
6 years ago
Matthew Holt
3439933235
Implement session ticket keys; default STEK module with rotation
6 years ago
Matthew Holt
34a25dd558
Add very simple markdown middleware for now
6 years ago
Matthew Holt
c24a3e389f
Change admin listener to :1234 for now; output message when listening
6 years ago
Matthew Holt
65195a726d
Implement rewrite middleware; fix middleware stack bugs
6 years ago
Matthew Holt
a969872850
Default error handler; rename StaticFiles -> FileServer
6 years ago
Matthew Holt
d22f64e6d4
Implement headers middleware
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
e40bbecb16
Rough implementation of auto HTTP->HTTPS redirects
Also added GracePeriod for server shutdowns
6 years ago
Matthew Holt
fbea3374e9
Add missing run.go (oops)
6 years ago
Matthew Holt
2eb3593327
Begin implementing HTTP replacer and static responder
6 years ago
Matthew Holt
2d056fbe66
Initial commit of Storage, TLS, and automatic HTTPS implementations
6 years ago
dev
d42529348f
Updated proxy module import
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
a8dc73b4d9
Performance testing Load function
6 years ago
Matthew Holt
859b5d7ea3
Initial commit
6 years ago