S allius/issue196 (#198)

* fix healthcheck

- on infrastructure with IPv6 support localhost
  might be resolved to an IPv6 adress. Since the
  proxy only support IPv4 for now, we replace
  localhost by 127.0.0.1, to fix this
This commit is contained in:
Stefan Allius
2024-10-13 17:13:07 +02:00
committed by GitHub
parent 62ea2a9e6f
commit 719c6f703a
3 changed files with 3 additions and 2 deletions

View File

@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [unreleased]
- fix healthcheck on infrastructure with IPv6 support [#196](https://github.com/s-allius/tsun-gen3-proxy/issues/196)
- refactoring: cleaner architecture, increase test coverage
- Parse more values in Server Mode [#186](https://github.com/s-allius/tsun-gen3-proxy/issues/186)
- GEN3: add support for new messages of version 3 firmwares [#182](https://github.com/s-allius/tsun-gen3-proxy/issues/182)

View File

@@ -62,7 +62,7 @@ class InverterBase(InverterIfc, Proxy):
# now explicitly call garbage collector to release unreachable objects
unreachable_obj = gc.collect()
logging.info(
logging.debug(
f'InverterBase.__exit: freed unreachable obj: {unreachable_obj}')
def __del_remote(self):

View File

@@ -83,7 +83,7 @@ services:
- ${PROJECT_DIR:-./}tsun-proxy/log:/home/tsun-proxy/log
- ${PROJECT_DIR:-./}tsun-proxy/config:/home/tsun-proxy/config
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:8127/-/healthy || exit 1
test: wget --no-verbose --tries=1 --spider http://127.0.0.1:8127/-/healthy || exit 1
interval: 10s
timeout: 3s
networks: