1. 26 Jan, 2021 3 commits
    • Łukasz Nowak's avatar
      caddy-frontend: Validate virtualhostroot-http[s]-port · 51572565
      Łukasz Nowak authored
      Since recent change the virtualhostroot-https-port and
      virtualhostroot-http-port are casted to integer during configuration
      generation so it's require to validate this input and reject incorrect values.
      51572565
    • Łukasz Nowak's avatar
      caddy-frontend: Move out logic from configuration file generation · fc23be53
      Łukasz Nowak authored
      As decision making quite often requires access to more than one slave entry,
      it's better to keep the logic above configuration generation. Also
      configuration generation is already complex, and it's better to have it
      simplified, especially in case of switching the component.
      
      Use already prepared values from apache-custom-slave-list.cfg.in in
      default-virtualhost.conf.in to simplify even more.
      
      Pass variables to the other profiles without casting them to string, so that
      they work out of the box.
      fc23be53
    • Jérome Perrin's avatar
      ERP5: Adjust apachedex promise for haproxy · 6909dcef
      Jérome Perrin authored
      Following up nexedi/slapos!858 to
      support milliseconds timings in access logs
      6909dcef
  2. 25 Jan, 2021 3 commits
  3. 22 Jan, 2021 1 commit
  4. 21 Jan, 2021 1 commit
    • Jérome Perrin's avatar
      software/erp5: Adjust apachedex promise for haproxy · e6087b7d
      Jérome Perrin authored
      Since bd3c2b18 (Remove httpd from ERP5 and use haproxy instead, 2020-12-14)
      timing in balancer access log files are in milliseconds, no longer in
      microseconds as they use to be with apache.
      
      We update apachedex to version 1.8, where it supports generating reports
      from access log files with milliseconds, as long as the expected format is
      passed with --logformat argument.
      
      We changed the default value of apachedex configuration to use the expected
      --logformat argument, but users with a custom apachedex config passed as
      instance parameters (monitor.apachedex-configuration) will have to update
      their request parameters, to also pass --logformat.
      Since this is breaking change, we take this opportunity to introduce another
      breaking change, this parameter is not longer a string with all arguments
      on the same line, which was problematic because these arguments contained
      quotes and backslashes. The arguments are now passed as a list of strings
      which will become the list of arguments passed to apachedex.
      
      This is implemented by generating an apachedex config file, which simplifies
      the generation of the wrapper. For this we also needed to upate
      slapos.toolbox.
      
      The same change is reflected to the overriden profiles in slapos-master,
      but for slapos-master we don't pass the --logformat argument, because
      slapos-master is using httpd, so the logs timings are still in microseconds.
      e6087b7d
  5. 20 Jan, 2021 2 commits
  6. 19 Jan, 2021 3 commits
  7. 18 Jan, 2021 1 commit
  8. 15 Jan, 2021 4 commits
  9. 14 Jan, 2021 1 commit
  10. 13 Jan, 2021 5 commits
  11. 12 Jan, 2021 5 commits
  12. 11 Jan, 2021 2 commits
  13. 08 Jan, 2021 2 commits
  14. 07 Jan, 2021 1 commit
  15. 05 Jan, 2021 1 commit
  16. 03 Jan, 2021 1 commit
  17. 31 Dec, 2020 3 commits
  18. 28 Dec, 2020 1 commit