Commit Graph

110 Commits

Author SHA1 Message Date
Georges-Antoine Assi
d45ace0e34 cleanup 2026-07-26 15:16:56 -04:00
Georges-Antoine Assi
96833892ce security: enforce asset upload limits before spooling, cover screenshots
Addresses the Greptile review on #3952.

- Reject oversized asset uploads from Content-Length in middleware, before
  FastAPI parses and spools the multipart body to temporary storage. The
  handler-level check stays as a backstop for chunked requests.
- Apply the limit to screenshot fields on the save, state and standalone
  screenshot endpoints, not just the primary file.
- Clamp the autocleanup limit to at least 1 so a non-positive value cannot
  wipe every save in a slot.
- Document the new settings in env.template.

Rename MAX_SAVE_UPLOAD_SIZE_BYTES to MAX_ASSET_UPLOAD_SIZE_BYTES now that it
covers states and screenshots too.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-07-26 09:24:42 -04:00
Georges-Antoine Assi
c9ee613062 Merge branch 'master' into feat/pcsx2-streaming-v2 2026-07-19 15:59:15 -04:00
Georges-Antoine Assi
cbba8b6259 feat(playmatch): support self-hosted Playmatch instances
Add a PLAYMATCH_API_URL env var (defaulting to the public instance) so
users can point RomM at a self-hosted Playmatch deployment. The handler
now derives all endpoints from this configurable base URL.

Fixes #3820

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-19 09:26:27 -04:00
Georges-Antoine Assi
2d3beb2718 final cleanup 2026-07-18 16:21:25 -04:00
Georges-Antoine Assi
338bfa4c9b frst chunk of self-cleaning 2026-07-18 10:57:58 -04:00
Georges-Antoine Assi
48e87180f1 Merge branch 'master' into feat/pcsx2-streaming-v2 2026-07-16 15:46:12 -04:00
Georges-Antoine Assi
355ee14352 feat: inject ScreenScraper dev credentials at build time
Remove the hardcoded (base64-obfuscated) ScreenScraper developer
credentials from the source tree and read them from the
SCREENSCRAPER_DEV_ID / SCREENSCRAPER_DEV_PASSWORD environment variables
instead.

The official images bake the values in at build time from CI secrets via
Docker build args; local builds and source runs read them from the
environment. env.template documents the vars (commented out) so an empty
value never overrides the image's built-in credentials.

Generated-By: PostHog Code
Task-Id: 05a9b58b-4c64-4f75-af3e-d27cc4c5702f
2026-07-13 13:06:31 -04:00
Zach Clendenen
a6e8cd75ed feat(streaming): add emulator streaming backend
Add /api/streaming endpoints for session claim/release, ROM launch,
save states, volume control, and save-and-exit against per-platform
emulator broker containers. Sessions are stored in Redis with atomic
SET NX claims, owner-bound, and admin force-releasable. Config comes
from config.yml (streaming.enabled + containers list) with a
STREAMING_SAVE_TIMEOUT env override for slow-saving brokers.

Includes 19 endpoint tests covering auth scopes, claim races,
ownership, broker failure paths, and force-release.
2026-07-08 17:38:04 -05:00
Spinnich
11a81c756f feat(auth): add OIDC_ALLOW_REGISTRATION toggle
Gate automatic account creation on OIDC login behind a new OIDC_ALLOW_REGISTRATION environment variable. Defaults to true, preserving the current auto-provisioning behavior; set it to false to run OIDC in an "existing users only" mode, where a login from an email without an existing RomM account is rejected with a 403 instead of silently creating one. Existing users are unaffected either way.

Adds the config constant, env.template and docs entries, and tests covering the enabled/disabled and existing-user paths.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-22 12:33:00 +00:00
zurdi
78cac11913 feat: add DISABLE_LOGS_VIEWER configuration and implement checks in logs endpoints and frontend 2026-06-20 15:48:58 +00:00
Georges-Antoine Assi
3557850701 refactor 2026-05-17 17:52:14 -04:00
Georges-Antoine Assi
962a9bfa7e one more 2026-04-30 14:39:52 -04:00
Georges-Antoine Assi
fc8d69dc0c update tests 2026-04-30 14:18:49 -04:00
Georges-Antoine Assi
e228683191 refactor env.tempalte 2026-04-18 16:18:46 -04:00
Georges-Antoine Assi
4db997d69f update env.template 2026-03-12 23:11:42 -04:00
HydroSulphide
8293c7ba9b Make OAuth token expiry configurable via env vars 2026-03-12 06:48:48 +01:00
Georges-Antoine Assi
f40dcb25a6 change it again 2026-01-10 14:32:32 -05:00
Georges-Antoine Assi
53330536e0 change to WEB_SERVER_GUNICORN_WAIT 2026-01-10 14:26:36 -05:00
Georges-Antoine Assi
91ff88a008 Add WEB_SERVER_GUNICORN_RETRIES env var for slow systems 2026-01-10 14:24:31 -05:00
SaraVieira
9f4fa0597a add default postgres password 2026-01-02 18:24:53 +00:00
Georges-Antoine Assi
50ddb42c25 [ROMM-2748] Add OIDC_USERNAME_ATTRIBUTE 2025-12-08 10:27:15 -05:00
Georges-Antoine Assi
b55ad52e89 move env var in template 2025-10-26 21:10:27 -04:00
Jamie Bond
005b2f1ed7 Add SEVEN_ZIP_TIMEOUT 2025-10-27 01:29:29 +01:00
Georges-Antoine Assi
161ab3ab89 add to end template 2025-10-18 16:46:43 -04:00
Georges-Antoine Assi
ff15cfcee6 support states for more types of tasks 2025-10-09 19:20:19 -04:00
Georges-Antoine Assi
79f582e037 add to env template 2025-10-09 14:28:30 -04:00
Georges-Antoine Assi
0d357d59e5 [ROMM-2470] Skip bind IPV6 if IPV4_ONLY is true 2025-10-07 09:07:30 -04:00
Georges-Antoine Assi
f7d2b92f1d add env var for custom tinfoil welcome messagr 2025-10-01 11:29:12 -04:00
Georges-Antoine Assi
21fa59c11d update list of env vars 2025-09-28 18:18:17 -04:00
Michael Manganiello
a31a8504c2 feat: Add scheduled task to sync RetroAchievements progress
Add a new scheduled task that syncs RetroAchievements progress for all
users with a RetroAchievements username.

Environment variables:
- `ENABLE_SCHEDULED_RETROACHIEVEMENTS_PROGRESS_SYNC`: Enable or disable
  the task (default: `false`)
- `SCHEDULED_RETROACHIEVEMENTS_PROGRESS_SYNC_CRON`: Cron string to
  schedule the task (default: "0 4 * * *" - daily at 4 AM)
2025-08-31 01:57:26 -03:00
Georges-Antoine Assi
f8d5feba24 changes from review 2025-08-30 14:19:29 -04:00
Georges-Antoine Assi
45edc8fcc0 use stores for loading global data 2025-08-28 09:48:52 -04:00
Georges-Antoine Assi
bf42faf578 fix loading and converting images 2025-08-27 23:31:29 -04:00
Georges-Antoine Assi
8f7efc0bb4 Merge pull request #2235 from rommapp/https-dev-mode
Run vite dev server with HTTPS enabled
2025-08-27 17:44:47 -05:00
Georges-Antoine Assi
798ffa31b3 switch names to WEB_SERVER_ 2025-08-26 23:53:55 -04:00
Georges-Antoine Assi
a4a714475f changes from review 2025-08-26 23:11:16 -04:00
Georges-Antoine Assi
9bb586b288 set timeouts 2025-08-26 21:09:13 -04:00
Georges-Antoine Assi
603f6ec5af Add options to gunicorn call 2025-08-26 18:16:52 -04:00
Georges-Antoine Assi
d6ccceff59 Run vite dev with https 2025-08-08 12:39:19 -04:00
Georges-Antoine Assi
50213a7891 [ROMM-1975] Add YOUTUBE_BASE_URL for custom youtube proxy 2025-07-21 18:23:54 -04:00
Georges-Antoine Assi
1a6654e436 add env var 2025-06-17 18:47:30 -04:00
Georges-Antoine Assi
88130a60f8 First batch of work for hasheous 2025-06-15 21:52:36 -04:00
Georges-Antoine Assi
c46d81bba5 Merge branch 'master' into feature/add-playmatch-integration 2025-06-15 12:56:12 -04:00
Georges-Antoine Assi
ae960fcaa6 return list of playmatch hits 2025-06-12 17:09:34 -04:00
Yukine
9bbe0613c6 feat(pm_handler): allow disabling playmatch via env 2025-06-05 14:36:40 +02:00
Georges-Antoine Assi
41ce4f06ac use env var to toggle lb 2025-05-24 20:35:59 -04:00
Georges-Antoine Assi
7d572ac0bf Merge branch 'master' into romm-403 2025-05-15 21:48:41 -04:00
zurdi
5f1d39c8f8 refactor: remove RETROACHIEVEMENTS_USERNAME from docker env variables 2025-05-13 09:31:06 +00:00
zurdi
94af36b053 fix: enable VITE_ALLOWED_HOSTS in environment template 2025-04-14 16:28:33 +00:00