Major refactoring of build_deploy action, along with docker building and packaging improvements. Added no_signups and other .env improvements. There is no longer a separate .env.dev, both use .env now.
This commit is contained in:
parent
76b2becc24
commit
6f57699c8d
28 changed files with 795 additions and 328 deletions
50
server/haproxy.cfg
Normal file
50
server/haproxy.cfg
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
# https://docs.haproxy.org/3.1/configuration.html
|
||||
global
|
||||
log stdout format raw local0 # Send logs to Docker's stdout
|
||||
master-worker
|
||||
|
||||
resolvers docker_resolver
|
||||
nameserver docker_dns 127.0.0.11:53 # Docker's internal DNS
|
||||
resolve_retries 3
|
||||
timeout resolve 1s
|
||||
timeout retry 1s
|
||||
hold valid 10s
|
||||
hold obsolete 30s
|
||||
accepted_payload_size 8192 # Optional: Increase if you have many replicas
|
||||
|
||||
defaults
|
||||
mode http
|
||||
log global
|
||||
timeout client 120s
|
||||
timeout connect 120s
|
||||
timeout server 120s
|
||||
timeout http-request 120s
|
||||
option httplog
|
||||
|
||||
frontend web_frontend
|
||||
bind :443 ssl crt /certs/crt.pem verify required ca-file /certs/ca.pem
|
||||
use_backend %[req.hdr(host),lower,word(1,:)] # strip out port from host
|
||||
|
||||
frontend checks
|
||||
bind :80
|
||||
default_backend basic_check
|
||||
|
||||
backend basic_check
|
||||
http-request return status 200 content-type "text/plain" lf-string "OK/HEALTHY"
|
||||
|
||||
backend pkmntrade.club
|
||||
balance leastconn
|
||||
server-template web- 10 web:8000 check resolvers docker_resolver init-addr libc,none
|
||||
|
||||
backend staging.pkmntrade.club
|
||||
balance leastconn
|
||||
server-template web-staging- 10 web-staging:8000 check resolvers docker_resolver init-addr libc,none
|
||||
|
||||
backend feedback.pkmntrade.club
|
||||
server feedback-1 feedback:3000
|
||||
|
||||
backend health.pkmntrade.club
|
||||
server health-1 health:8080
|
||||
|
||||
#EOF - trailing newline required
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue