Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compose/monitoring/docker-compose.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ services:
# with panel credentials when 150 readable lines do the job.
game-exporter:
networks: [monitoring] # NOT the default network: see the note at the end
image: python:3.14.8-alpine
image: python:3.15.1-alpine
restart: unless-stopped
command: ["python", "-I", "/app/game_exporter.py"]
user: "65534:65534" # nobody: the script needs no rights at all
Expand Down
3 changes: 2 additions & 1 deletion compose/monitoring/game-exporter/game_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def _amp_call(method, payload):
_amp_session = login.get("sessionID")
if not _amp_session:
raise RuntimeError("AMP login failed")
res = _req(f"{AMP_URL}/API/{method}", {"SESSIONID": _amp_session, **payload})
# session goes in the Authorization header; SESSIONID in the body is deprecated (AMP 2.8 logs a warning per call)
res = _req(f"{AMP_URL}/API/{method}", payload, {"Authorization": f"Bearer {_amp_session}"})
if isinstance(res, dict) and res.get("Title") == "Unauthorized Access" and attempt == 1:
_amp_session = None # session expired -> log in again once
continue
Expand Down
2 changes: 1 addition & 1 deletion compose/wud/docker-compose.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ services:
- wud-internal

wud:
image: getwud/wud:9.4.1
image: getwud/wud:9.5.0
container_name: wud
restart: unless-stopped
depends_on:
Expand Down
Loading