2025-02-19 07:53:26 -08:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
# Exit on error
|
|
|
|
|
set -eo pipefail
|
2026-04-30 10:02:16 -07:00
|
|
|
|
|
|
|
|
# Ensure trusted IP whitelist files exist (volume-mounted /etc/haproxy may shadow image defaults)
|
|
|
|
|
mkdir -p /etc/haproxy
|
|
|
|
|
[ -f /etc/haproxy/trusted_ips.list ] || : > /etc/haproxy/trusted_ips.list
|
|
|
|
|
[ -f /etc/haproxy/trusted_ips.map ] || : > /etc/haproxy/trusted_ips.map
|
|
|
|
|
|
2025-02-20 13:41:38 -08:00
|
|
|
cron &
|
|
|
|
|
python /haproxy/haproxy_manager.py
|