mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 10:01:00 +01:00
* feat(converto): integrate rom-converto for title id extraction and download conversion * fix(docker): ship rom-converto in the production image Only the dev Dockerfile installed the binary, so the integration could never enable on a released image. Fetch the same pinned, checksummed musl build in a dedicated stage and copy it next to RAHasher. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix(converto): skip the update check and batch info calls The CLI asks api.github.com for a newer release on every run unless told not to, so pass --no-update-check on each invocation. Inspect a rom's files in one `info --paths-file` run instead of one subprocess per file, and read the inspectable extensions from the capabilities manifest so scans skip files info cannot recognize. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix(scan): keep sigil authoritative for title ids rom-converto ran first and overrode the ids sigil read. Sigil now runs first and records its per-file ids; rom-converto only fills files sigil left unset, on new or changed files, in one batch. Restore the base-id selection for sigil extractions on every platform, as on master. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix(downloads): make conversion opt-in and bound the cache The download endpoint returned a converted file to every client once a platform had a target, including the browser player and apps that check hashes against RomFile. Conversion now needs ?converted=true. A pre-warmed copy is served whatever its size; the in-request size cap only gates starting a conversion. ROM_CONVERTO_CACHE_MAX_SIZE_GB (default 20, 0 unbounded) caps the cache: conversions and the pre-warm task stop when it is full, and cleanup evicts the least recently served copies. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * chore(types): regenerate frontend types for the converto schema Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix(converto): address code-review findings (pr-ready step 2) - Fall back to rom-converto's stored ids only when it ran this pass, in disc order, so a rescan that skipped extraction keeps sigil's save target - Persist per-file title ids that extraction writes onto reused rows - Only authenticated callers may start an in-request conversion; past a 240s deadline serve the original and let the conversion finish into the cache instead of nginx returning 504 - Treat a probe OSError or timeout as a failed probe; kill the subprocess when the caller is cancelled - Give the pre-warm task the scan timeout and report progress in the ConversionStats shape the task UI reads - Reuse zip_cache constants, walk the cache off the event loop, tolerate files vanishing mid-cleanup, and trim long comments Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * refactor(converto): simplify conversion code (pr-ready step 3) - Move the converted-download policy (target lookup, cached-first, sync size cap, deadline) from the endpoint into utils/conversion_cache and share conversion_target with the pre-warm task - Share one path lookup between get_cached_converted and get_or_convert; the pre-warm walks the cache once and tracks a running byte budget instead of walking it twice per rom - One normalize_platform_formats beside TARGETS_BY_PLATFORM for the config loader (via _validated_platform_map) and the settings endpoint; update_converto_settings takes a ConvertoConfig and is written back with dataclasses.asdict - read_infos owns its never-raise contract, so the scan drops its blanket except; drop the unused RomConvertoInfo.kind and error attributes - Sort files for the rom-converto identity only when it is used; stat each cached file once during cleanup Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * chore(converto): trim comments (pr-ready step 4) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * refactor(converto): convert on first download instead of pre-warming A library pre-warm fought the TTL: cleanup dropped every copy nobody downloaded within a day. Remove the Convert library task and convert on demand only. Files over ROM_CONVERTO_MAX_SYNC_SIZE_MB now start their conversion in the background while the original is served, so the next download within the TTL gets the converted copy at any size. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * refactor(converto): drop decrypt and encrypt download targets Downloads now only change a rom's container or compression (CHD, RVZ, CSO, NSZ, ...); serving decrypted files is left for a separate decision. NDS and PS3 have no remaining targets. Also note that the conversion concurrency limit applies per process. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * refactor(converto): move the cache limits into converto.* cache_max_size_gb and max_sync_size_mb join cache_ttl_hours in config.yml and PUT /api/config/converto_settings, replacing the ROM_CONVERTO_CACHE_MAX_SIZE_GB and ROM_CONVERTO_MAX_SYNC_SIZE_MB env vars, so every eviction knob is edited in one place at runtime. The loader takes its defaults from ConvertoConfig and one table holds each integer's minimum for both the loader and the payload. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * refactor(converto): lock conversions with flock instead of a sentinel A conversion now holds a non-blocking flock on its key dir, which the kernel releases if the worker dies. That replaces the .partial sentinel, its 6-hour staleness guess (which a long ROM_CONVERTO_TIMEOUT could outlive), and the rename-aside takeover. Cleanup skips locked dirs, and partial output gets a hidden name so it never counts as a served copy. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * test(converto): parametrize repeated test cases Collapse the per-platform info parsing, operation resolution and converto_active cases into parametrized tests, so a new platform or target is one row. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * refactor(scan): run rom-converto first with sigil as the fallback rom-converto reads each rom's new or changed files first, in one batch, and its title ids win. sigil still reads what it can, since it alone provides save targets and Switch content types, and fills the ids rom-converto left unset. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * feat(converto): store per-file metadata read by rom-converto during scans * fix(scan): keep the stored save target when sigil reads nothing * fix(converto): read Xbox 360 disc ids and Wii title versions, store content type as text * feat(converto): save file icons, banners and backgrounds read by rom-converto * chore(converto): bump rom-converto to v0.23.0 * fix(converto): address review findings in the conversion cache, scan metadata and settings * refactor(converto): move per-file metadata out of the conversion PR Scan-time metadata (title ids, the 17 rom_files columns, artwork and converto.scan_metadata) moves to its own PR so its columns land with the UI that reads them. This PR keeps conversion only. The conversion cache no longer has uncompressed_size_bytes to budget with, so a conversion to an uncompressed target reserves a fixed multiple of its input and the cleanup pass after it evicts any overshoot. Co-Authored-By: DevYukine <20647088+DevYukine@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017BuuZVVtVPNLRaCjTN9bgQ * feat(converto): let the client pick the download format with ?format= `?format=zso,iso` lists the formats a client can read. The stored file is served whenever its format is listed, even with conversion off, so most emulator clients never trigger a conversion. Otherwise the first listed format with a cached copy is served, then the first one rom-converto can produce. A conversion that outlasts a short wait answers 202 with Retry-After instead of falling back to the original, so a URL never serves two different files and a client never gets bytes it can't read. 406 means no listed format can be served. HEAD reports the same without starting a conversion. This replaces `?converted=true`, the per-platform download target and `max_sync_size_mb`; `cache_ttl_hours` stays config.yml-only. Co-Authored-By: DevYukine <20647088+DevYukine@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017BuuZVVtVPNLRaCjTN9bgQ * feat(converto): convert the library in place with a manual task `converto.platform_formats` now names the format a platform's library is stored in, and the new "Convert library" task brings every matched rom to it. Each output is staged in a `.romm_tmp_` directory beside the original, moved into place, and only then are the originals (and a cue's tracks) deleted. Single-file roms take the new name, folder roms keep theirs and get their .m3u entries rewritten, and the file rows refresh, so a rom keeps its id, saves and collections. Only lossless conversions qualify, so xbox (xiso trims the dump) has no library format. Unmatched roms are skipped because a converted file no longer hash-matches a DAT. `/api/config` now carries the library targets and, per input extension, the formats a download can be converted to. Co-Authored-By: DevYukine <20647088+DevYukine@users.noreply.github.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017BuuZVVtVPNLRaCjTN9bgQ * fix(converto): address Greptile and Copilot review findings - Publish a converted library file with a no-replace link, so a file that appears during conversion is never overwritten. - Delete originals only after the rom row or its playlists point at the new file, and keep them if that update fails. Playlists are rewritten atomically. - Refuse a cue conversion whose tracks another rom or another cue holds. - Remove stage dirs a killed conversion left behind. - Try later ?format= targets when a conversion fails, treat any locked key dir as converting, and cap how many conversions downloads can start. - Drop the unsupported iso target for CD platforms from the example config and list the ROM_CONVERTO_* variables in env.template. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * fix(converto): address code-review findings (pr-ready step 2) Serve converted outputs at 0644, read cue sheets and playlists with a BOM, stage folder rom conversions outside the rom folder, keep one rom's failure from stopping the convert library task, accept alias extensions as the stored format, probe running conversions with a shared lock, and bound the timeout. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * refactor(converto): simplify conversion code (pr-ready step 3) Check and chmod rom-converto output once in the adapter, canonicalize requested format aliases, reuse LINK_FALLBACK_ERRNOS and the handler's atomic write, make the download format table a constant, skip the probe lock once cached, and fold duplicated name checks and cache stat passes. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * chore(converto): trim comments (pr-ready step 4) Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> * refactor(converto): find rom-converto on PATH instead of ROM_CONVERTO_PATH Both images install the binary on PATH, the variable was undocumented, and RAHasher is already resolved the same way. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Yukine <devyukine@gmx.de> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Co-authored-by: DevYukine <20647088+DevYukine@users.noreply.github.com>
209 lines
14 KiB
Plaintext
209 lines
14 KiB
Plaintext
# Core Application
|
|
ROMM_BASE_PATH=/romm # Base folder path for library, resources and assets
|
|
ROMM_TMP_PATH= # Custom temporary directory path
|
|
ROMM_BASE_URL=http://0.0.0.0 # Public URL of this instance
|
|
ROMM_PORT=8080 # Port on which the application listens
|
|
KIOSK_MODE=false # Let visitors browse without logging in (read-only)
|
|
|
|
# Database
|
|
ROMM_DB_DRIVER=mariadb # Database driver to use (mariadb, mysql, postgresql)
|
|
DB_HOST= # Host name of the database instance [REQUIRED]
|
|
DB_PORT=3306 # Port number of the database instance
|
|
DB_NAME=romm # Database name (should match MYSQL_DATABASE in MariaDB)
|
|
DB_USER= # Database username (should match MARIADB_USER in MariaDB) [REQUIRED]
|
|
DB_PASSWD= # Database password (should match MARIADB_PASSWORD in MariaDB) [REQUIRED]
|
|
DB_ROOT_PASSWD= # Database root user password (only used by the bundled MariaDB container)
|
|
DB_QUERY_JSON= # Extra query parameters for the database connection, as JSON
|
|
DB_POOL_RECYCLE_SECONDS=300 # Retire a pooled connection after this long, before the server drops it for being idle (-1 to never recycle)
|
|
|
|
# Redis/Valkey
|
|
REDIS_HOST=127.0.0.1 # Host name of the Redis/Valkey instance
|
|
REDIS_PORT=6379 # Port number of the Redis/Valkey instance
|
|
REDIS_USERNAME= # Username for the Redis/Valkey instance
|
|
REDIS_PASSWORD= # Password for the Redis/Valkey instance
|
|
REDIS_DB=0 # Database number for the Redis/Valkey instance
|
|
REDIS_SSL=false # Enable SSL (rediss://) for the Redis/Valkey connection
|
|
REDIS_SAVE_POLICY=3600 1 # Snapshot policy of the internal Valkey, as "<seconds> <changes>" pairs (empty to never snapshot)
|
|
|
|
# Authentication
|
|
ROMM_AUTH_SECRET_KEY= # App secret, generate with `openssl rand -hex 32` [REQUIRED]
|
|
OAUTH_ACCESS_TOKEN_EXPIRE_SECONDS=1800 # Access token lifetime in seconds
|
|
OAUTH_REFRESH_TOKEN_EXPIRE_SECONDS=604800 # Refresh token lifetime in seconds
|
|
SESSION_MAX_AGE_SECONDS=1209600 # Maximum age of a session in seconds
|
|
INVITE_TOKEN_EXPIRY_SECONDS=600 # Invite token lifetime in seconds
|
|
DISABLE_DOWNLOAD_ENDPOINT_AUTH=false # Disable auth on the download endpoint for WebRcade/Tinfoil
|
|
DISABLE_CSRF_PROTECTION=false # Disable CSRF protection (not recommended)
|
|
DISABLE_USERPASS_LOGIN=false # Disable username/password login when using OIDC
|
|
DISABLE_SETUP_WIZARD=false # Skip the first-boot setup wizard
|
|
DISABLE_LOGS_VIEWER=false # Disable the backend logs viewer
|
|
ROMM_CORS_ALLOWED_ORIGINS= # Comma-separated list of allowed CORS origins (empty allows none; a wildcard allows any origin but never credentials)
|
|
ROMM_SESSION_SECURE_COOKIE=false # Mark session and CSRF cookies Secure (enable when served over HTTPS)
|
|
|
|
# Email, for notification channels and password reset links (off unless SMTP_HOST and SMTP_FROM are set)
|
|
SMTP_HOST= # SMTP server host
|
|
SMTP_PORT=587 # SMTP 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_SECURITY=starttls # starttls, tls (implicit TLS, usually port 465) or none; any other value leaves email off
|
|
|
|
# OpenID Connect
|
|
OIDC_ENABLED=false # Enable OpenID Connect authentication
|
|
OIDC_AUTOLOGIN=false # Skip the OIDC button on the login page and auto-redirect
|
|
OIDC_ALLOW_REGISTRATION=true # Allow new accounts to be created automatically on first OIDC login
|
|
OIDC_PROVIDER= # Name of the OIDC provider in use
|
|
OIDC_CLIENT_ID= # Client ID for OIDC authentication
|
|
OIDC_CLIENT_SECRET= # Client secret for OIDC authentication
|
|
OIDC_REDIRECT_URI= # Absolute redirect URI for OIDC authentication
|
|
OIDC_SERVER_APPLICATION_URL= # Absolute URL of the OIDC server application
|
|
OIDC_SERVER_METADATA_URL= # URL to the OIDC provider metadata endpoint
|
|
OIDC_CLAIM_ROLES= # OIDC claim containing user roles
|
|
OIDC_ROLE_VIEWER= # Role value mapping to viewer permissions
|
|
OIDC_ROLE_EDITOR= # Role value mapping to editor permissions
|
|
OIDC_ROLE_ADMIN= # Role value mapping to admin permissions
|
|
OIDC_TLS_CACERTFILE= # CA bundle file (PEM, DER or .p7b) or directory, trusted alongside the system CAs
|
|
OIDC_USERNAME_ATTRIBUTE=preferred_username # Attribute on OIDC user info used as the username
|
|
OIDC_RP_INITIATED_LOGOUT=false # Enable RP-initiated logout flow
|
|
OIDC_END_SESSION_ENDPOINT= # OIDC end-session endpoint override URL
|
|
|
|
# Metadata Providers
|
|
IGDB_CLIENT_ID= # Client ID for the IGDB API
|
|
IGDB_CLIENT_SECRET= # Client secret for the IGDB API
|
|
MOBYGAMES_API_KEY= # MobyGames secret API key
|
|
SCREENSCRAPER_USER= # Screenscraper username
|
|
SCREENSCRAPER_PASSWORD= # Screenscraper password
|
|
STEAMGRIDDB_API_KEY= # SteamGridDB secret API key
|
|
RETROACHIEVEMENTS_API_KEY= # RetroAchievements secret API key
|
|
REFRESH_RETROACHIEVEMENTS_CACHE_DAYS=30 # RetroAchievements metadata cache refresh interval in days
|
|
PLAYMATCH_API_ENABLED=false # Enable PlayMatch API integration
|
|
# PLAYMATCH_API_URL=https://playmatch.retrorealm.dev/api/v2 # Point at a self-hosted PlayMatch instance
|
|
LAUNCHBOX_API_ENABLED=false # Enable LaunchBox API integration
|
|
HASHEOUS_API_ENABLED=false # Enable Hasheous API integration
|
|
# HASHEOUS_API_URL=https://hasheous.org/api/v1 # Point at a self-hosted Hasheous instance
|
|
FLASHPOINT_API_ENABLED=false # Enable Flashpoint API integration
|
|
HLTB_API_ENABLED=false # Enable HowLongToBeat API integration
|
|
DEMOZOO_API_ENABLED=false # Enable Demozoo (filename tags (demozoo-N) / paste ID; no API key)
|
|
POUET_API_ENABLED=false # Enable Pouët (filename tags (pouet-N) / paste ID; no API key)
|
|
CSDB_API_ENABLED=false # Enable CSDb (filename tags (csdb-N) / paste ID / Demozoo CsdbRelease; no API key)
|
|
STEAM_API_ENABLED=false # Enable Steam API integration (PC platforms only)
|
|
TGDB_API_ENABLED=false # Enable TheGamesDB API integration
|
|
# Only use when building your own image or running from source
|
|
# SCREENSCRAPER_DEV_ID=
|
|
# SCREENSCRAPER_DEV_PASSWORD=
|
|
|
|
# Physical Games
|
|
UPC_LOOKUP_ENABLED=true # Look a barcode up by UPC when adding a physical game
|
|
UPC_LOOKUP_API_KEY= # Key for the UPC lookup service, if your plan needs one
|
|
UPC_LOOKUP_URL=https://api.upcitemdb.com/prod/trial/lookup # UPC lookup endpoint
|
|
|
|
# Scans & Tasks
|
|
SCAN_TIMEOUT=14400 # Timeout for background scan/rescan tasks in seconds
|
|
SCAN_WORKERS=4 # How many ROMs a scan processes at once
|
|
TASK_TIMEOUT=300 # Timeout for other background tasks in seconds
|
|
TASK_RESULT_TTL=86400 # How long to keep task results in Valkey in seconds
|
|
SEVEN_ZIP_TIMEOUT=180 # Timeout for 7-Zip operations in seconds
|
|
ENABLE_RESCAN_ON_FILESYSTEM_CHANGE=false # Re-scan the library automatically when the filesystem changes
|
|
RESCAN_ON_FILESYSTEM_CHANGE_DELAY=5 # Delay in minutes before re-scanning after a filesystem change
|
|
ENABLE_SCHEDULED_RESCAN=false # Enable scheduled library re-scans
|
|
SCHEDULED_RESCAN_CRON=0 3 * * * # Cron expression for scheduled re-scans
|
|
ENABLE_SCHEDULED_UPDATE_SWITCH_TITLEDB=false # Enable scheduled Switch TitleDB index updates
|
|
SCHEDULED_UPDATE_SWITCH_TITLEDB_CRON=0 4 * * * # Cron expression for scheduled Switch TitleDB updates
|
|
ENABLE_SCHEDULED_UPDATE_LAUNCHBOX_METADATA=false # Enable scheduled LaunchBox metadata updates
|
|
SCHEDULED_UPDATE_LAUNCHBOX_METADATA_CRON=0 4 * * * # Cron expression for scheduled LaunchBox metadata updates
|
|
ENABLE_SCHEDULED_CONVERT_IMAGES_TO_WEBP=false # Enable scheduled conversion of images to WebP
|
|
SCHEDULED_CONVERT_IMAGES_TO_WEBP_CRON=0 4 * * * # Cron expression for scheduled WebP conversion
|
|
ENABLE_SCHEDULED_CLEANUP_NETPLAY=true # Enable scheduled cleanup of empty netplay rooms
|
|
SCHEDULED_CLEANUP_NETPLAY_CRON=*/30 * * * * # Cron expression for scheduled netplay room cleanup
|
|
ENABLE_SCHEDULED_CLEANUP_UPLOAD_TMP=true # Enable scheduled cleanup of abandoned chunked uploads; when disabled, expired temp directories must be removed by hand
|
|
SCHEDULED_CLEANUP_UPLOAD_TMP_CRON=0 * * * * # Cron expression for scheduled upload temp cleanup
|
|
ENABLE_SCHEDULED_CLEANUP_ZIP_CACHE=true # Enable scheduled cleanup of stale cached ZIP files
|
|
SCHEDULED_CLEANUP_ZIP_CACHE_CRON=0 4 * * * # Cron expression for scheduled ZIP cache cleanup
|
|
ENABLE_SCHEDULED_CLEANUP_SYNC_SESSIONS=true # Enable scheduled failing of sync sessions no client completed
|
|
SCHEDULED_CLEANUP_SYNC_SESSIONS_CRON=23 * * * * # Cron expression for scheduled sync session cleanup
|
|
ENABLE_SCHEDULED_CLEANUP_ORPHANED_RESOURCES=false # Enable scheduled cleanup of orphaned resources (covers, screenshots) left by deleted ROMs
|
|
SCHEDULED_CLEANUP_ORPHANED_RESOURCES_CRON=0 5 * * * # Cron expression for scheduled orphaned resource cleanup
|
|
ENABLE_SCHEDULED_RETROACHIEVEMENTS_PROGRESS_SYNC=false # Enable scheduled RetroAchievements progress sync
|
|
SCHEDULED_RETROACHIEVEMENTS_PROGRESS_SYNC_CRON=0 4 * * * # Cron expression for scheduled RetroAchievements sync
|
|
ENABLE_SCHEDULED_BUILD_RECOMMENDATIONS=true # Enable the scheduled rebuild of the recommendations index
|
|
SCHEDULED_BUILD_RECOMMENDATIONS_CRON=30 5 * * * # Cron expression for the recommendations index rebuild
|
|
|
|
# Audit log
|
|
AUDIT_LOG_RETENTION_DAYS=90 # Days to keep audit log events (plays, downloads, library and account changes); 0 keeps them forever
|
|
|
|
# Sync
|
|
ENABLE_SYNC_FOLDER_WATCHER=false # Watch the sync folder and trigger scans on change
|
|
SYNC_FOLDER_SCAN_DELAY=2 # Delay in minutes before scanning after a sync folder change
|
|
ENABLE_SYNC_PUSH_PULL=false # Enable scheduled sync push/pull
|
|
SYNC_PUSH_PULL_CRON=*/30 * * * * # Cron expression for scheduled sync push/pull
|
|
SYNC_SSH_KEYS_PATH= # Path to SSH keys for sync remotes (defaults to $ROMM_BASE_PATH/sync/keys)
|
|
SYNC_SSH_KNOWN_HOSTS_PATH= # Path to SSH known_hosts (defaults to $ROMM_BASE_PATH/sync/known_hosts)
|
|
SYNC_RETROARCH_PSP_SERIAL_MAP= # JSON map of PSP serial to extensionless ROM file name, for RetroArch PSP saves whose title matches no ROM
|
|
|
|
# Device install
|
|
DEVICE_INSTALL_ENABLED=true # Let users push a ROM to one of their registered devices for install
|
|
DEVICE_INSTALL_REQUEST_TTL_DAYS=2 # Days an unfinished install request waits for its device after its last change; 0 waits forever
|
|
DEVICE_INSTALL_EXCLUDED_PLATFORM_SLUGS=win,win3x,win9x,windows-apps # Comma-separated platform slugs that can never be pushed to a device
|
|
|
|
# Emulation
|
|
DISABLE_EMULATOR_JS=false # Disable in-browser play via EmulatorJS
|
|
DISABLE_RUFFLE_RS=false # Disable in-browser Flash playback via RuffleRS
|
|
DISABLE_JSDOS=false # Disable in-browser Win3.x and Win9.x playback via js-dos
|
|
DISABLE_PICO8=false # Disable in-browser PICO-8 playback via FAKE-08
|
|
|
|
# ROM conversion
|
|
ROM_CONVERTO_ENABLED=false # Enable rom-converto for the "Convert library" task and ?format= download conversions
|
|
ROM_CONVERTO_TIMEOUT=600 # Timeout for each rom-converto operation in seconds
|
|
ROM_CONVERTO_MAX_CONCURRENCY=2 # Concurrent conversions per web or task worker
|
|
|
|
# Integrations
|
|
YOUTUBE_BASE_URL=https://www.youtube.com # Base URL for alternate YouTube frontends (Piped, Invidious, etc.)
|
|
TINFOIL_WELCOME_MESSAGE="RomM Switch Library" # Welcome message shown in Tinfoil Switch clients
|
|
|
|
# Assets
|
|
MAX_ASSET_UPLOAD_SIZE_BYTES=536870912 # Max size of a save/state/screenshot upload request in bytes (0 disables the limit)
|
|
MAX_AUTOCLEANUP_LIMIT=100 # Max number of saves a client can keep per slot when autocleanup is on (minimum 1)
|
|
MAX_SAVES_PER_SLOT=50 # Versions the server keeps per save slot, newest first, on every slotted upload (0 disables)
|
|
|
|
# Logging
|
|
LOGLEVEL=INFO # Application log level
|
|
FORCE_COLOR=false # Force colored log output
|
|
NO_COLOR=false # Disable colored log output
|
|
|
|
# Web Server
|
|
WEB_SERVER_CONCURRENCY=4 # Number of API worker processes, raise for several concurrent users
|
|
WEB_SERVER_TIMEOUT=300 # Timeout for web server requests in seconds
|
|
WEB_SERVER_KEEPALIVE=65 # Keep-Alive connection wait time in seconds, keep above nginx's 60s upstream idle timeout
|
|
WEB_SERVER_MAX_REQUESTS=1000 # Maximum requests a worker processes before restarting
|
|
WEB_SERVER_MAX_REQUESTS_JITTER=100 # Random jitter added to max requests value
|
|
WEB_SERVER_WORKER_CONNECTIONS=1000 # Maximum simultaneous clients per worker process
|
|
WEB_SERVER_GUNICORN_WAIT_SECONDS=30 # Seconds to wait for Gunicorn to start before giving up
|
|
FORWARDED_ALLOW_IPS=127.0.0.1,::1,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,100.64.0.0/10,fc00::/7 # Proxies trusted to report the client's address (X-Forwarded-For); add a reverse proxy's public IP here, or * to trust any
|
|
IPV4_ONLY=false # Bind only to IPv4
|
|
|
|
# Proxy
|
|
HTTP_PROXY= # HTTP proxy URL for outbound requests
|
|
HTTPS_PROXY= # HTTPS proxy URL for outbound requests
|
|
NO_PROXY= # Comma-separated list of hosts to bypass the proxy
|
|
|
|
# Observability
|
|
SENTRY_DSN= # DSN for Sentry error tracking
|
|
|
|
# Development
|
|
DEV_MODE=false # Enable development mode (debugging, hot-reloading)
|
|
DEV_HOST=127.0.0.1 # Host for the development server
|
|
DEV_PORT=5000 # Port for the development server
|
|
DEV_PROXY_TARGET= # Optional RomM origin (e.g. https://romm.example.com) for vite proxy
|
|
DEV_HTTPS=false # Enable HTTPS in the development server
|
|
DEV_SQL_ECHO=false # Log all SQL queries in development mode
|
|
POSTGRES_DB=authentik # Postgres database name for the Authentik dev stack
|
|
POSTGRES_USER=authentik # Postgres user for the Authentik dev stack
|
|
POSTGRES_PASSWORD=authentik # Postgres password for the Authentik dev stack
|
|
AUTHENTIK_SECRET_KEY= # Authentik secret key
|
|
AUTHENTIK_BOOTSTRAP_PASSWORD= # Initial Authentik admin bootstrap password
|
|
|
|
# Emulator Streaming
|
|
STREAMING_BROKER_SECRET= # Shared secret matching streaming containers' BROKER_SECRET, required for broker auth
|
|
STREAMING_SAVE_TIMEOUT=45 # Seconds to wait for a broker save-and-exit (raise if a broker has SAVE_WAIT > 45)
|
|
STREAMING_LAUNCH_TIMEOUT=600 # Seconds a webstation activate may take, covering pkg/archive extraction before the emulator starts
|
|
STREAMING_STATE_HISTORY_LIMIT=50 # Save states kept per ROM, emulator and user; oldest are pruned past this (0 disables)
|