diff --git a/CHANGELOG b/CHANGELOG index de0a1eb..c9fbf68 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.6.5] - 2025-02-26 + +### Added + +- Add custom web for health check to use custom edge or private ip. +- Rebuild to consume ziti_router_auto_enroll 1.0.21. + ## [1.6.4] - 2024-10-10 ### Fixed diff --git a/router_registration.py b/router_registration.py index 0ad6f39..7458433 100755 --- a/router_registration.py +++ b/router_registration.py @@ -305,7 +305,7 @@ def create_parser(): :return: A Namespace containing arguments """ - __version__ = '1.6.4' + __version__ = '1.6.5' parser = argparse.ArgumentParser() mgroup = parser.add_mutually_exclusive_group(required=True) @@ -710,6 +710,16 @@ def handle_ziti_router_auto_enroll(args, router_info, enrollment_commands, regis enrollment_commands.append('--proxyPort') enrollment_commands.append(str(args.proxyPort)) + # add web for healthcheck + enrollment_commands.append('--webs') + enrollment_commands.append('health-check') + enrollment_commands.append('0.0.0.0:8081') + if args.edge: + enrollment_commands.append(f"{args.edge}:8081") + else: + enrollment_commands.append(ziti_router_auto_enroll.get_private_address() + ':8081') + enrollment_commands.append('health-checks') + # print enrollment command in debug logging.debug(enrollment_commands)