Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions haproxy.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ frontend https
bind *:443 ssl crt /app/server.pem
reqadd X-Forwarded-Proto:\ https
option socket-stats

stats enable
stats refresh 30s
stats show-node
stats uri /stats
{{range $key, $container := whereExist $ "Env.AMAZEEIO" }}
{{$host := coalesce $container.Env.AMAZEEIO_URL $container.Name }}
use_backend http_{{$host}} if { hdr_dom(host) -i {{$host}} }
Expand Down