RomM 5.4.0-alpha.2

5.4.0-alpha.2Pre-release
Added 8
  • Added SMTP_HOST, SMTP_PORT, SMTP_USERNAME, SMTP_PASSWORD, SMTP_FROM and SMTP_SECURITY environment variables for email notifications
  • Added AUDIT_LOG_RETENTION_DAYS environment variable to set how many days audit events are kept, with 0 keeping them forever
  • Added ROM_CONVERTO_ENABLED, ROM_CONVERTO_TIMEOUT and ROM_CONVERTO_MAX_CONCURRENCY environment variables for library conversion
  • Added DEVICE_INSTALL_ENABLED, DEVICE_INSTALL_REQUEST_TTL_DAYS and DEVICE_INSTALL_EXCLUDED_PLATFORM_SLUGS environment variables for pushing ROMs to devices
  • Added SYNC_RETROARCH_PSP_SERIAL_MAP environment variable to map PSP serials to ROM file names for RetroArch PSP saves
  • Added scheduled cleanup toggles and cron settings for netplay rooms, upload temp files, ZIP cache and sync sessions
  • Added DISABLE_EASYRPG environment variable to disable the EasyRPG player for all users
  • Added age_limit and hide_unrated_roms to permission group and user permission schemas, applied on update only with set_age_settings set to true
Changed 12
  • Cross-origin requests are denied by default; an unset or empty ROMM_CORS_ALLOWED_ORIGINS now allows no origins instead of all origins
  • A wildcard ROMM_CORS_ALLOWED_ORIGINS allows any origin but no longer sends Access-Control-Allow-Credentials, so clients using the session cookie must list their origin explicitly
  • FORWARDED_ALLOW_IPS now defaults to loopback and private address ranges instead of trusting all proxies, so a reverse proxy on a public address must be added to it
  • X-Forwarded-For is trusted only from loopback and private ranges unless a proxy is added to FORWARDED_ALLOW_IPS
  • SEVEN_ZIP_TIMEOUT default increased from 60 to 180 seconds
  • rom_count on collection, smart and virtual collection schemas is now read-only and computed from the visible rom_ids
Fixed 1
  • A malformed Basic header or invalid or expired JWT bearer no longer causes a 500 error and the request proceeds unauthenticated
Removed 2
  • PermissionGroupSchema.is_system removed and replaced by system_key
  • sync_session_id removed from play session responses

From RomM

[!CAUTION] Give the first start time to finish its migrations. Several of this release's migrations rewrite the roms table and backfill it in batches, which can take a while on a large library. Don't restart the container while they run.

[!WARNING] Cross-origin requests are denied by default. An unset or empty ROMM_CORS_ALLOWED_ORIGINS used to allow every origin, and now allows none. If a browser-based client on another origin talks to your RomM, list its origin in ROMM_CORS_ALLOWED_ORIGINS. A * still answers any origin, but without credentials, so a client that signs in with the session cookie needs its origin listed explicitly. #4699

[!WARNING] Add a reverse proxy on a public address to FORWARDED_ALLOW_IPS. RomM now trusts X-Forwarded-For only from loopback and private ranges. A proxy outside those ranges has to be added, or every request is logged and rate limited as coming from the proxy's address. #4748

Technical changes
Notifications and email
variabledefaultdescription
SMTP_HOST-SMTP server; email stays off until this and SMTP_FROM are set
SMTP_PORT587SMTP server port
SMTP_USERNAME-Login for the SMTP server, if it needs one
SMTP_PASSWORD-Password for the SMTP server
SMTP_FROM-Sender address, such as romm@example.com
SMTP_SECURITYstarttlsstarttls, tls (implicit TLS, usually port 465) or none
Audit log
variabledefaultdescription
AUDIT_LOG_RETENTION_DAYS90Days to keep audit events; 0 keeps them forever
Library conversion
variabledefaultdescription
ROM_CONVERTO_ENABLEDfalseEnable the "Convert library" task and ?format= download conversions
ROM_CONVERTO_TIMEOUT600Seconds per rom-converto operation
ROM_CONVERTO_MAX_CONCURRENCY2Concurrent conversions per web or task worker
Devices and sync
variabledefaultdescription
DEVICE_INSTALL_ENABLEDtrueLet users push a ROM to one of their devices for install
DEVICE_INSTALL_REQUEST_TTL_DAYS2Days an unfinished install request waits for its device; 0 waits forever
DEVICE_INSTALL_EXCLUDED_PLATFORM_SLUGSwin,win3x,win9x,windows-appsPlatforms that can never be pushed to a device
SYNC_RETROARCH_PSP_SERIAL_MAP{}JSON map of PSP serial to extensionless ROM file name, for RetroArch PSP saves whose title matches no ROM
Scheduled cleanups
variabledefaultdescription
ENABLE_SCHEDULED_CLEANUP_NETPLAYtrueClean up empty netplay rooms
SCHEDULED_CLEANUP_NETPLAY_CRON*/30 * * * *When that cleanup runs
ENABLE_SCHEDULED_CLEANUP_UPLOAD_TMPtrueClean up abandoned chunked uploads
SCHEDULED_CLEANUP_UPLOAD_TMP_CRON0 * * * *When that cleanup runs
ENABLE_SCHEDULED_CLEANUP_ZIP_CACHEtrueClean up stale cached ZIP files
SCHEDULED_CLEANUP_ZIP_CACHE_CRON0 4 * * *When that cleanup runs
ENABLE_SCHEDULED_CLEANUP_SYNC_SESSIONStrueFail sync sessions no client completed
SCHEDULED_CLEANUP_SYNC_SESSIONS_CRON23 * * * *When that cleanup runs
General
variabledefaultdescription
⚠️ ROMM_CORS_ALLOWED_ORIGINS-Empty now allows no cross-origin requests; a * allows any origin but never credentials
⚠️ FORWARDED_ALLOW_IPSlocal/loopback addressesProxies trusted to report the client's address; was *
DISABLE_EASYRPGfalseDisable the EasyRPG player for everyone
SEVEN_ZIP_TIMEOUT180Timeout for 7-Zip operations in seconds, was 60
Notifications
MethodPathDescription
GET/api/notificationsList the caller's notifications, newest first (#4732)
POST/api/notificationsSend a notification to yourself, or to other users with users.write (#4732)
POST/api/notifications/readMark the given notifications (or all) read (#4732)
DELETE/api/notifications/{notification_id}Dismiss one notification (#4732)
DELETE/api/notificationsDismiss all notifications (#4732)
Notification channels
MethodPathDescription
GET/api/notification-channelsList the caller's channels (Apprise, webhook, email) (#4735)
POST/api/notification-channelsCreate a channel; email addresses get a confirmation code (#4735)
PATCH/api/notification-channels/{channel_id}Update a channel (#4735)
DELETE/api/notification-channels/{channel_id}Delete a channel (#4735)
POST/api/notification-channels/{channel_id}/testSend a test notification now (#4735)
POST/api/notification-channels/{channel_id}/confirmConfirm an email channel with its code (#4735)
POST/api/notification-channels/{channel_id}/resend-codeResend the email confirmation code (#4735)
GET/api/notification-channels/apprise-servicesList Apprise services and their fields (admin) (#4769)
POST/api/notification-channels/apprise-services/parseParse a service or Apprise URL into fields (admin) (#4769)
Audit events
MethodPathDescription
GET/api/audit-eventsPaginated audit log, filterable by actor, action, category, target, time range and search; admins with users.read see everyone (#4748)
Device installs
MethodPathDescription
GET/api/devices/onlineIDs of the caller's devices with an open /devices socket (#4835)
POST/api/devices/{device_id}/installsQueue a ROM install on a device (#4835)
GET/api/devices/{device_id}/installsList the device's pending and taken install requests (#4835)
POST/api/devices/{device_id}/installs/claimDevice claims its pending requests (device-bound token only) (#4835)
PUT/api/devices/{device_id}/installs/{request_id}Device reports done, already_installed or failed (#4835)
DELETE/api/devices/{device_id}/installs/{request_id}Cancel a pending or taken request (#4835)
GET/api/roms/{id}/installsThe caller's open install requests for a ROM (#4835)
RetroArch Cloud Sync (WebDAV)
MethodPathDescription
OPTIONS/api/sync/retroarch/{path}Advertise DAV support (#3904)
PROPFIND/api/sync/retroarch/{path}Read-only browsing of roms/, saves/ and states/ (#3904)
GET, HEAD/api/sync/retroarch/{path}Serve the manifest or a save/state file (#3904)
PUT/api/sync/retroarch/{path}Upload a save/state, matched to a ROM by file name (#3904)
DELETE, MOVE/api/sync/retroarch/{path}Remove a save/state the client dropped (#3904)
MKCOL, LOCK, UNLOCK/api/sync/retroarch/{path}Accepted no-ops for WebDAV clients; uses HTTP Basic with a 401 challenge (#3904)
Saves and states
MethodPathDescription
PUT/api/saves/{id}/favoriteSet is_favorite on a save (#4714)
PUT/api/saves/{id}/labelsReplace a save's labels (#4714)
PUT/api/saves/{id}/file-nameRename a save file and its screenshot (#4749)
PUT/api/states/{id}/favoriteSet is_favorite on a state (#4714)
PUT/api/states/{id}/labelsReplace a state's labels (#4714)
PUT/api/states/{id}/file-nameRename a state file and its screenshot (#4749)
Collections
MethodPathDescription
PUT/api/collections/{id}/visibilityShare or unshare a collection (owner only) (#4749)
PUT/api/collections/smart/{id}/visibilityShare or unshare a smart collection (owner only) (#4749)
ROMs, tasks and config
MethodPathDescription
POST/api/tasks/scanQueue a library scan with a ScanPayload body; 202, 409 if one is in flight, 503 with no worker (#5014)
GET/api/roms/{id}/easyrpg/{path}Serve the EasyRPG index.json and game/RTP files for RPG Maker 2000/2003 games (#5077)
PUT/api/config/converto_settingsUpdate download conversion settings (#4999)
Socket.IO events
MethodPathDescription
Server to clientnotifications:new / notifications:read / notifications:dismissedNotification created, marked read, or dismissed for the user (#4732)
Server to clientinstall:updatedAn install request changed, sent to the owner's tabs (#4835)
Server to clientinstall:queued / install:cancelledSent to a device on the new /devices namespace (device-bound client token required) (#4835)
Server to clientactivity:refreshSignals clients to refetch the activity list (#5125)
Highlights
Notifications

RomM now keeps a notification inbox for each user. Scans and tasks that finish or fail, a role change, or someone ending your stream all leave a notification that is pushed to every open tab and still waits for you the next time you open RomM. Admins can send their own from the Send tab on the Notifications page, and any API client can post one through POST /api/notifications. #4732

Each user can also forward their notifications to channels, filtered by level and topic. A RomM webhook sends a JSON payload (signed with HMAC-SHA256 when you give it a secret), and email works once the SMTP_* variables are set, which also sends password reset links by email. Admins can additionally pick any of the services Apprise supports, such as Discord, Telegram, Slack, ntfy, Gotify or Matrix, and fill in that service's fields or paste its URL. #4735 #4769

RetroArch Cloud Sync

RomM is now a Cloud Sync target for RetroArch. Point RetroArch's Cloud Sync at https://<your-romm>/api/sync/retroarch/ (the trailing slash matters) and sign in with your RomM username and password (setup guide). Saves and states sync straight into your library, web player states show up in RetroArch's numbered load slots, and RetroArch registers itself as one of your devices on its first sync. #3904

The config, thumbnails and system file categories sync too, stored per user. PSP save folders are bundled into one save per folder; if a folder's title matches no ROM, map its serial with SYNC_RETROARCH_PSP_SERIAL_MAP. Generic WebDAV clients can browse the same path read-only. #3931

Browser saves sync, and installs on your devices

All five in-browser players (EmulatorJS, EasyRPG, js-dos, PICO-8 and Ruffle) now sync saves through device sync. Each browser profile registers as a device, named like "Firefox on macOS", and negotiates its saves with the server when a game launches, so a save made in one browser is waiting in another and a conflicting copy is archived instead of overwritten. A new Devices page at /devices lets you rename your devices, turn sync off for one, or remove it. #5091

You can also send a game to a device from the web UI. "Install on device" in a game's menu adds it to the download queue of the devices you pick, and the device downloads it the next time it's online. Only devices whose app reports it accepts installs are listed. Turn the feature off with DEVICE_INSTALL_ENABLED=false, and keep platforms out of it with DEVICE_INSTALL_EXCLUDED_PLATFORM_SLUGS. #4835

Parental controls

Give a permission group an age limit, and its members only see games rated for that age or younger. Each user can replace their group's limit, and a "Hide unrated games" switch hides games no rating covers. Admins are never limited. Set them in the group and user dialogs under Administration. #5081 #5083

A game's age comes from the strictest of its IGDB, ScreenScraper, LaunchBox (ESRB) and Steam ratings, and a manual rating list replaces the providers' ratings. The limit applies everywhere a game can show up: the gallery, search, collections, stats, the Jukebox and feeds. See Parental controls for the details.

Audit log

RomM now records who did what: downloads and player launches, play sessions, uploads and edits, collection changes, scans and tasks, and security events like sign-ins, failed sign-ins and permission changes. Admins read it in the new Events tab under Settings › Logs, filtered by user, category and date, with a search over names and IP addresses. Events are kept for 90 days, set by AUDIT_LOG_RETENTION_DAYS (0 keeps them forever). See Audit log for everything that's recorded. #4748

Library conversion with rom-converto

Pick a storage format per platform, and the new "Convert library" task converts every matched game on it in place, so a game keeps its saves and collections. Only lossless conversions are offered, and because the task deletes the originals it asks you to type a confirmation first. Set ROM_CONVERTO_ENABLED=true and choose formats under the new Conversion settings page, or in config.yml (setup guide). #4999

With download_conversion_enabled on, the game page's More menu offers "Download as" in any format the file can be converted to, and clients can ask for one with ?format= on the download URL. #5000

converto:
  download_conversion_enabled: true
  platform_formats:
    psx: chd
    ngc: rvz
RPG Maker 2000/2003 in the browser

RPG Maker 2000 and 2003 games on the rpg-maker platform now play in the browser on the EasyRPG web player. The free EasyRPG RTP ships with it, so games that rely on the RTP start, though some assets (mostly in battles) are missing from it. Games need to be extracted folders, since the web player can't read archives. Disable it with DISABLE_EASYRPG. #5077

Alternative titles and relevance in search

Search now matches the alternative titles your metadata providers know about, including localized names, so a Japanese title finds the game listed under its English name and the other way around. You can add your own in the new "Alternative titles" field of the Edit dialog, such as "ACNH" or a fan translation's name. Already matched IGDB and Hasheous games pick up their regional titles on their next metadata refresh. #5111

The Search page also orders results by relevance until you pick a sort, with exact title matches first. #4995 #4996

Minor changes
Fixes
Other changes
New Contributors

Full Changelog: https://github.com/rommapp/romm/compare/5.3.1...5.4.0-alpha.2

View original

Upgraded? How did it go?

Discussion