Support LT_PORT in healtcheck script

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2025-06-13 21:16:07 +02:00
parent b53c5c55fb
commit 042bafac2c
No known key found for this signature in database
GPG key ID: 00135ACBD90B28DD

View file

@ -1,7 +1,9 @@
import requests
import os
port = os.environ.get('LT_PORT', '5000')
response = requests.post(
url='http://localhost:5000/translate',
url=f'http://localhost:{port}/translate',
headers={'Content-Type': 'application/json'},
json={
'q': 'Hello World!',