forked from mtusi2026/mtusi2026lab3
feat: add initial project structure and files for Go API with PostgreSQL and HAProxy
Co-authored-by: aider (ollama/qwen2.5-coder:7b) <aider@aider.chat>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
frontend http-in
|
||||
bind *:8080
|
||||
default_backend api_servers
|
||||
|
||||
backend api_servers
|
||||
balance roundrobin
|
||||
option httpchk GET /health
|
||||
server api1 api1:8080 check inter 3s fall 3 rise 2
|
||||
server api2 api2:8080 check inter 3s fall 3 rise 2
|
||||
|
||||
http-request set-header X-Instance-Id %[req.hdr(X-Instance-Id)]
|
||||
Reference in New Issue
Block a user