Finish packaging and change to src-based packaging layout, replace caddy with haproxy for performance, and update docker-compose and Dockerfiles for new packaging.
This commit is contained in:
parent
959b06c425
commit
762361a21b
210 changed files with 235 additions and 168 deletions
21
haproxy/haproxy.cfg
Normal file
21
haproxy/haproxy.cfg
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
defaults
|
||||
mode http
|
||||
timeout client 10s
|
||||
timeout connect 5s
|
||||
timeout server 10s
|
||||
timeout http-request 10s
|
||||
|
||||
frontend cf
|
||||
bind :443 ssl crt /certs/crt.pem verify required #ca-file /certs/ca.pem
|
||||
default_backend django
|
||||
|
||||
backend django
|
||||
balance leastconn
|
||||
option httpchk
|
||||
http-check send meth GET uri /health/
|
||||
http-check expect string OK/HEALTHY
|
||||
default-server check maxconn 10000 observe layer7
|
||||
server django1 pkmntradeclub-web-1:8000
|
||||
server django2 pkmntradeclub-web-2:8000
|
||||
server django3 pkmntradeclub-web-3:8000
|
||||
server django4 pkmntradeclub-web-4:8000
|
||||
Loading…
Add table
Add a link
Reference in a new issue