1. 23 Sep, 2017 1 commit
  2. 22 Sep, 2017 4 commits
  3. 18 Sep, 2017 2 commits
    • Tim Lewis's avatar
      Fix linux-sysvinit script to prevent missing caddy.log · fea8f37f
      Tim Lewis authored
      Create /var/log/caddy.log and chown prior to starting caddy.
      Caddy running as DAEMONUSER does not have permission to create the /var/log/caddy.log.
      fea8f37f
    • Tim Lewis's avatar
      Fix spurious .pid file error in linux-sysvinit · a8082520
      Tim Lewis authored
      This change eliminates the `[ERROR] Could not write pidfile: open /var/run/caddy.pid: permission denied` from caddy.log.
      The start-stop-daemon writes the file as root so the DAEMONUSER that caddy runs as cannot write to the .pid file.
      a8082520
  4. 16 Sep, 2017 2 commits
  5. 15 Sep, 2017 2 commits
  6. 12 Sep, 2017 5 commits
  7. 11 Sep, 2017 2 commits
    • Matthew Holt's avatar
      tls: Remove expiring certificates from cache and load renewed ones · 46ae4a66
      Matthew Holt authored
      Renewed certificates would not be reloaded into the cache because their
      names conflict with names of certificates already in the cache; this
      was intentional when loading new certs to avoid confusion, but is
      problematic when renewing, since the old certificate doesn't get
      evicted from the cache. (Oops.)
      
      Here, I remedy this situation by explicitly deleting the old cert from
      the cache before adding the renewed one back in.
      46ae4a66
    • Matthew Holt's avatar
      Implement Caddy-Sponsors HTTP response header · 56453e96
      Matthew Holt authored
      (See EULA.) Personally-licensed official Caddy builds cannot remove
      this header by configuration. The commercially-licensed builds of Caddy
      don't have this header.
      56453e96
  8. 10 Sep, 2017 1 commit
  9. 08 Sep, 2017 3 commits
  10. 07 Sep, 2017 1 commit
    • Matthew Holt's avatar
      Add EULA · f069a575
      Matthew Holt authored
      The End-User License Agreement applies to official Caddy binaries;
      the source code is still under the same open source license.
      f069a575
  11. 06 Sep, 2017 2 commits
  12. 04 Sep, 2017 1 commit
  13. 02 Sep, 2017 1 commit
  14. 29 Aug, 2017 4 commits
  15. 26 Aug, 2017 4 commits
  16. 25 Aug, 2017 4 commits
  17. 24 Aug, 2017 1 commit
    • Matt Holt's avatar
      templates: Execute template loaded by later middlewares (#1649) · 4b1b329e
      Matt Holt authored
      * templates: Execute template loaded by later middlewares
      
      This is the beginning of an attempt to make the staticfiles file server
      the only middleware that hits the disk and loads content. This may have
      unknown implications. But the goal is to reduce duplication without
      sacrificing performance. (We now call ServeContent here.)
      
      This change loses about 15% of the req/sec of the old way of doing it,
      but this way is arguably more correct since the file server is good at
      serving static files; duplicating that logic in every middleware that
      needs to hit the disk is not practical.
      
      * httpserver: Introduce ResponseRecorder as per Tw's suggestions
      
      It implements io.ReaderFrom and has some allocation-reducing
      optimizations baked into it
      
      * templates: Increase execution speed by ~10-15% after perf regression
      
      By using httpserver.ResponseBuffer, we can reduce allocations and still
      get what we want. It's a little tricky but it works so far.
      4b1b329e