Skip to content

Instantly share code, notes, and snippets.

@al26p
Created April 16, 2023 04:07
Show Gist options
  • Save al26p/201d1561de600b218bc8583a8df8c0cf to your computer and use it in GitHub Desktop.
Save al26p/201d1561de600b218bc8583a8df8c0cf to your computer and use it in GitHub Desktop.
# _version=1
# HAProxy Technologies
# https://www.haproxy.com/
#
# this file is not meant to be changed directly
# it is under haproxy ingress controller management
#
global
daemon
master-worker
pidfile /var/run/haproxy.pid
stats socket /var/run/haproxy-runtime-api.sock level admin expose-fd listeners
defaults
timeout http-request 5000
timeout connect 5000
timeout client 50000
timeout queue 5000
timeout server 50000
timeout tunnel 3600000
timeout http-keep-alive 60000
peers localinstance
peer local 127.0.0.1:10000
frontend https
mode http
bind 127.0.0.1:8080 name v4
http-request set-var(txn.base) base
use_backend %[var(txn.path_match),field(1,.)]
frontend http
mode http
bind 127.0.0.1:4443 name v4
http-request set-var(txn.base) base
use_backend %[var(txn.path_match),field(1,.)]
frontend healthz
bind 127.0.0.1:1042 name v4
mode http
monitor-uri /healthz
option dontlog-normal
frontend stats
mode http
bind *:1024 name stats
http-request set-var(txn.base) base
http-request use-service prometheus-exporter if { path /metrics }
stats enable
stats uri /
stats refresh 10s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment