• Matthew Holt's avatar
    Rewrote Caddy from the ground up; initial commit of 0.9 branch · ac4fa2c3
    Matthew Holt authored
    These changes span work from the last ~4 months in an effort to make
    Caddy more extensible, reduce the coupling between its components, and
    lay a more robust foundation of code going forward into 1.0. A bunch of
    new features have been added, too, with even higher future potential.
    
    The most significant design change is an overall inversion of
    dependencies. Instead of the caddy package knowing about the server
    and the notion of middleware and config, the caddy package exposes an
    interface that other components plug into. This does introduce more
    indirection when reading the code, but every piece is very modular and
    pluggable. Even the HTTP server is pluggable.
    
    The caddy package has been moved to the top level, and main has been
    pushed into a subfolder called caddy. The actual logic of the main
    file has been pushed even further into caddy/caddymain/run.go so that
    custom builds of Caddy can be 'go get'able.
    
    The HTTPS logic was surgically separa...
    ac4fa2c3
plugins.go 9.03 KB