mirror of
https://github.com/rommapp/romm.git
synced 2026-12-03 02:24:09 +01:00
Closes #4288. HasheousHandler hardcoded https://hasheous.org/api/v1, so a self-hosted instance was unreachable. Add HASHEOUS_API_URL with the same shape as the existing PLAYMATCH_API_URL: a full base URL, defaulting to the current value and still selecting the beta host under DEV_MODE. Two details beyond swapping the constant: Cover art is linked relative to the site root rather than the API path, so lookup_rom built it from a second hardcoded https://hasheous.org. Derive that origin from the configured URL with yarl, as the handlers already do elsewhere. A self-hosted instance usually sits on a private address, which the SSRF guard rejects. INTERNAL_ORIGIN_ALLOWLIST already exists for exactly this - origins the admin configured deliberately - so add the Hasheous origin alongside Playmatch's. Without it, setting the variable to a LAN or container address fails to connect.