Skip to content

New PR from - 1.2.0

  • Modularized and documented functions
    • maxmind_license_download, iso_map_creation, and lanonly_map_creation now include docstrings with description, globals, locals, returns, and actions.
  • More robust GeoIP management
    • Automatic download of GeoLite2-Country from MaxMind if MAXMIND_LICENSE_KEY is provided.
    • Generation of GeoLite2-Country.map compatible with HAProxy and supporting both IPv4/IPv6.
    • Global variables GEOIP_STATUS and GEOIP_REFRESHED managed consistently.
  • Local access maps (lanonly.map)
    • Automatically generated from HAPROXY_ALLOWED_IPV4_PREFIX.
    • Whitespace sanitized and prefixes normalized to /24.
    • Fully compatible with HAProxy.
  • Ensured directory structure
    • Dynamic creation of necessary directories (modules.files, conf.d) before starting HAProxy.
  • Configuration flexibility
    • Supports multiple additional .cfg files in conf.d.
    • HAProxy starts with base and additional configuration files.
  • Improved readability and maintainability
    • Refactored in bash with clear comments and docstrings.
    • Temporary files (/tmp/GeoLite2-Country) cleaned up after map generation.
  • Compatibility and safety
    • Maps generated without parsing errors for HAProxy.
    • Safe initialization flow using set -e.

Merge request reports

Loading