fix: trigger RomM quick scan via socket

This commit is contained in:
2026-06-26 05:52:11 +00:00
parent dd6dbb457e
commit 61883814d2
3 changed files with 99 additions and 16 deletions

View File

@@ -26,13 +26,16 @@ HOMARR_PORT=7775
# Valid values: romarr,discord,validation or comma-separated combinations.
COMPOSE_PROFILES=validation
# Import worker: watches a single landing folder at staging/incoming, infers the
# RomM platform when safe, imports into RomM, then triggers RomM's scan_library
# task. Keep immediate scan enabled while testing; later we can debounce/batch
# scans if needed.
# Worker watches staging/incoming as a single landing folder, infers the
# RomM platform when safe, imports into RomM, then triggers the same Socket.IO
# quick scan that RomM's web UI manual scan uses. Keep immediate scan enabled
# while testing; later we can debounce/batch scans if needed.
ROMM_SCAN_AFTER_IMPORT=true
ROMM_SCAN_TASK=socket_quick_scan
ROMM_SCAN_APIS=igdb
IMPORT_POLL_SECONDS=60
IMPORT_QUIET_IDLE=true
# Optional JSON extension/platform overrides for ambiguous file types.
# Example: {".iso":"ngc",".chd":"psx"}
IMPORT_PLATFORM_MAP_JSON={}
@@ -60,10 +63,10 @@ IGDB_CLIENT_SECRET=fill_me
ROMM_SERVER_URL=http://your-romm-host:port
ROMM_USERNAME=fill_me
ROMM_PASSWORD=fill_me
# Optional but recommended for the import worker scan trigger. Create a RomM API
# token with the Run tasks / tasks.run permission and paste it in the real env.
# Username/password may pass basic library checks but still receive HTTP 403 when
# trying to run /api/tasks/run/scan_library without this scope.
# Optional RomM API token for task endpoints that require tasks.run. The current
# import worker defaults to the Socket.IO quick-scan path because this RomM
# install does not allow manual execution of the scheduled scan_library task.
# Keep the token here anyway for status/task API checks and future fallback use.
ROMM_API_TOKEN=
# Romarr image. Upstream docs list romarr/romarr:latest, but the public image was not pullable