1. 05 Apr, 2019 2 commits
  2. 26 Mar, 2019 3 commits
  3. 22 Mar, 2019 1 commit
    • Jérome Perrin's avatar
      caddy: use same log format as apache · 5c23e132
      Jérome Perrin authored
      in apache frontend, we have been using:
      
      ```
      LogFormat "%h %l %{REMOTE_USER}i %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %D" combined
      ```
      
      The %l is (from mod_log_config docs): Remote logname (from identd, if
      supplied). This will return a dash unless mod_ident is present and
      IdentityCheck is set On.
      
      In the case of apache frontend, it was always a - . This is missing in
      caddy frontend and our existing log processing tools (apachedex) cannot
      be used on frontend logs since we switched to Caddy.
      
      /reviewed-on !530
      5c23e132
  4. 21 Mar, 2019 3 commits
    • Łukasz Nowak's avatar
      caddy-frontend: Fix timeout on the backend · 5107d40b
      Łukasz Nowak authored
      dict in headers is smallcase, so it was never working in reality.
      5107d40b
    • Łukasz Nowak's avatar
      caddy-frontend: Prove that stale-if-error works · 115b6bf5
      Łukasz Nowak authored
      Added assertion which proves that the ATS is serving stale content in case if
      the backend does not work, according to RFC5861.
      
      It is beleived that stale-while-revalidate will work the same way, but it is
      much harder to test, thus it is not done directly.
      115b6bf5
    • Łukasz Nowak's avatar
      caddy-frontend: Adapt to ATS 7 · 7017a46e
      Łukasz Nowak authored
      Adapted configuration and instantiation to ATS 7.
      
      Deployment:
       * traffic_line has been replaced with traffic_ctl
       * access log, of squid style, is ascii instead of binary, to do so
         logging.config is generated
       * ip_allow.config is configured to allow access from any host
       * RFC 5861 (stale content on error or revalidate) is implemented with core
         instead with deprecated plugin
       * trafficserver-autoconf-port renamed to trafficserver-synthetic-port
       * proxy.config.system.mmap_max removed, as it is not used by the system anymore
      
      Tests:
       * As Via header is not returned to the client, it is dropped from the
         tests, instead its existence in the backend is checked.
       * Promise plugin trafficserver-cache-availability.py is re enabled, as
         it is expected to work immediately.
      7017a46e
  5. 13 Mar, 2019 3 commits
  6. 11 Mar, 2019 1 commit
    • Łukasz Nowak's avatar
      caddy-frontend/test: Select ports for services · e2265d46
      Łukasz Nowak authored
      As the test runs in erp5.util.testnode, which has some ports reserved,
      and they collide with default ports of caddy-frontend services, select
      ports for those services, and leave out default for monitor, as test expects.
      e2265d46
  7. 07 Mar, 2019 2 commits
  8. 04 Mar, 2019 1 commit
  9. 01 Mar, 2019 1 commit
  10. 28 Feb, 2019 2 commits
  11. 26 Feb, 2019 1 commit
  12. 14 Feb, 2019 1 commit
  13. 08 Feb, 2019 2 commits
  14. 17 Jan, 2019 1 commit
  15. 16 Jan, 2019 1 commit
    • Łukasz Nowak's avatar
      caddy-frontend/test: Workaround requests issue with Accept-Encoding · 28b1abe9
      Łukasz Nowak authored
      requests set Accept-Encoding header, but in the testr environment we
      want to have full control over its behaviour, thus not setting any header if
      not really wanted.
      
      As there is not known way to avoid setting the header (skip_accept_encoding is
      internal to httplib) set dummy Accept-Encoding header, which is enough for our
      environment.
      28b1abe9
  16. 10 Jan, 2019 1 commit
  17. 04 Jan, 2019 1 commit
  18. 02 Jan, 2019 1 commit
    • Łukasz Nowak's avatar
      caddy-frontend: Assert and fix HTTP redirect codes · b137f9d5
      Łukasz Nowak authored
      Just asserting Location header is not enough, as http status code value is
      important for the implementation, so assert for its value.
      
      Also fix https-only redirect status code value, which supposed to be FOUND,
      not default MOVED_PERMANENTLY.
      
      /reviewed-on !485
      b137f9d5
  19. 30 Dec, 2018 2 commits
  20. 28 Dec, 2018 2 commits
  21. 20 Dec, 2018 1 commit
  22. 18 Dec, 2018 1 commit
  23. 14 Dec, 2018 1 commit
  24. 13 Dec, 2018 2 commits
  25. 11 Dec, 2018 1 commit
  26. 06 Dec, 2018 1 commit
  27. 05 Dec, 2018 1 commit