DEVELOPMENT ENVIRONMENT

~liljamo/nix-arta

f97598a1adf5299fe19671a844dcc8668e6ef8ff — Jonni Liljamo a month ago f1b929c
feat(systems/hosts/proxy): log response status on haproxy
1 files changed, 3 insertions(+), 3 deletions(-)

M systems/hosts/proxy/haproxy.conf
M systems/hosts/proxy/haproxy.conf => systems/hosts/proxy/haproxy.conf +3 -3
@@ 14,7 14,7 @@ defaults
frontend stats
  bind *:8404
  http-request capture req.fhdr(User-Agent) len 512
  log-format "client_ip=\"%ci\" client_port=\"%cp\" time=\"%t\" frontend_name=\"%f\" backend_name=\"%b\" request=\"%r\" request_headers=\"%hr\""
  log-format "client_ip=\"%ci\" client_port=\"%cp\" time=\"%t\" frontend_name=\"%f\" backend_name=\"%b\" response_status=\"%ST\" request=\"%r\" request_headers=\"%hr\""

  http-request use-service prometheus-exporter if { path /metrics }
  stats enable


@@ 24,7 24,7 @@ frontend stats
frontend http-in
  bind 0.0.0.0:80
  http-request capture req.fhdr(User-Agent) len 512
  log-format "client_ip=\"%ci\" client_port=\"%cp\" time=\"%t\" frontend_name=\"%f\" backend_name=\"%b\" request=\"%r\" request_headers=\"%hr\""
  log-format "client_ip=\"%ci\" client_port=\"%cp\" time=\"%t\" frontend_name=\"%f\" backend_name=\"%b\" response_status=\"%ST\" request=\"%r\" request_headers=\"%hr\""

  acl host_media req.hdr(Host) media.liljamo.com
  acl allow_media_metrics src 10.1.2.5


@@ 47,7 47,7 @@ frontend https-in
  bind 0.0.0.0:443
  mode tcp
  option tcplog
  log-format "client_ip=\"%ci\" client_port=\"%cp\" time=\"%t\" frontend_name=\"%f\" backend_name=\"%b\" request_headers=\"%hr\""
  log-format "client_ip=\"%ci\" client_port=\"%cp\" time=\"%t\" frontend_name=\"%f\" backend_name=\"%b\" response_status=\"%ST\" request_headers=\"%hr\""

  default_backend be_caddy-https