Configuration reference
These settings are configured in the administration interface, not through environment variables.
Defaults and descriptions come from Gameyfin's configuration definitions.
Paths such as /swagger-ui.html refer to your Gameyfin instance, not this documentation site.
Allow access to Gameyfin without login
Key: security.allow-public-access
Type: Boolean
Default: false
When enabled, anyone can browse (and potentially download) games without logging in.
Enable interactive API documentation
Key: security.swagger-ui-enabled
Type: Boolean
Default: false
Makes the API documentation and OpenAPI document publicly accessible under this link: /swagger-ui.html
Enable automatic library scanning using file system watchers
Key: library.scan.enable-filesystem-watcher
Type: Boolean
Default: false
Watches your library folders for file changes and updates this specific folder when files are added, removed, or renamed.
Scan empty directories
Key: library.scan.scan-empty-directories
Type: Boolean
Default: false
When enabled, empty folders inside a library path are also reported during a scan.
Extract title from file names using regex
Key: library.scan.extract-title-using-regex
Type: Boolean
Default: false
Uses the regex defined in Title Extraction Regex to strip unwanted parts (e.g. release tags) from file names before matching.
Regex to extract title from file names
Key: library.scan.title-extraction-regex
Type: String
Default: ^[^\[]+
Java-compatible regular expression used to extract the game title from a file name. The first captured group (or full match) is used as the title.
Minimum ratio for title matching. Higher values mean stricter matching.
Key: library.scan.title-match-min-ratio
Type: Int
Default: 90
Constraints: min: 0; max: 100; step: 1
Used to match titles across different metadata sources (plugins). Raise this value to reduce false positives; lower it to match more liberally.
File extensions to consider as games
Key: library.scan.game-file-extensions
Type: Array<String>
Default: zip, tar, gz, rar, 7z, bz2, xz, iso, jar, tgz, exe, bat, cmd, com, msi, bin, run, app, dmg, elf
Only files whose extension appears in this list are treated as games during a library scan. Add custom extensions to support additional formats.
Scan concurrency
Key: library.scan.max-concurrency
Type: Int
Default: 4
Constraints: min: 1; max: 16; step: 1
Controls how many games are processed simultaneously during a library scan (metadata fetching, image downloading, etc.). Lower values reduce peak memory usage; higher values speed up large scans. Does not affect already running scans.
Enable submission of game requests
Key: requests.games.enabled
Type: Boolean
Default: true
Allows users to submit requests for games they would like to see added to the library.
Allow guests (not logged in) to create game requests
Key: requests.games.allow-guests-to-request-games
Type: Boolean
Default: false
When enabled, visitors who are not logged in can also submit game requests.
Maximum number of pending requests per user. Set to 0 for unlimited.
Key: requests.games.max-open-requests-per-user
Type: Int
Default: 10
Caps the number of open (unresolved) requests a single user can have at any time. Set to 0 to remove the limit.
Enable per-user bandwidth limiting for downloads
Key: downloads.bandwidth-limit.enabled
Type: Boolean
Default: false
When enabled, each user's download speed is capped at the value specified in Bandwidth Limit (Mbps).
Maximum download speed in Megabits per second (Mbps)
Key: downloads.bandwidth-limit.mbps
Type: Int
Default: 100
The maximum allowed download speed per user in Megabits per second. Only takes effect when bandwidth limiting is enabled.
Allow new users to sign up by themselves
Key: users.sign-ups.allow
Type: Boolean
Default: false
When enabled, a Register button is shown on the login page so anyone can create an account.
Admins need to confirm new users
Key: users.sign-ups.confirmation-required
Type: Boolean
Default: true
When enabled, newly registered accounts are inactive until an administrator explicitly approves them.
Enable SSO via OIDC/OAuth2
Key: sso.oidc.enabled
Type: Boolean
Default: false
Activates the OpenID Connect / OAuth 2.0 single sign-on integration. All other OIDC settings below are required when this is turned on.
Match existing users by
Key: sso.oidc.match-existing-users-by
Type: MatchUsersBy
Default: username
Allowed values: username, email
Determines which field (username or email) is used to link an incoming SSO identity to an existing Gameyfin account.
Username claim
Key: sso.oidc.username-claim
Type: String
Default: preferred_username
Name of the OIDC / userinfo claim used as the Gameyfin username (e.g. preferred_username, name, email).
If the claim is absent or blank, Gameyfin falls back through preferred_username → nickname → name → email → sub automatically.
Role claim
Key: sso.oidc.roles-claim
Type: String
Default: roles
Name of the OIDC / userinfo claim that contains the user's roles. Gameyfin maps these roles to its own permission system.
OAuth2 scopes to request
Key: sso.oidc.oauth-scopes
Type: Array<String>
Default: openid, profile, email, roles
List of OAuth 2.0 scopes sent in the authorization request. Must include at least openid.
Client ID
Key: sso.oidc.client-id
Type: String
Default: Not set
The client identifier issued by your identity provider when you registered Gameyfin as an OAuth 2.0 application.
Client secret
Key: sso.oidc.client-secret
Type: String
Default: Not set
The client secret issued by your identity provider. Keep this value confidential.
Issuer URL
Key: sso.oidc.issuer-url
Type: String
Default: Not set
The base URL of your identity provider (e.g. https://auth.example.com/realms/myrealm). Used for OIDC discovery.
Authorize URL
Key: sso.oidc.authorize-url
Type: String
Default: Not set
The authorization endpoint of your identity provider. Required when OIDC auto-discovery is not available.
Token URL
Key: sso.oidc.token-url
Type: String
Default: Not set
The token endpoint used to exchange an authorization code for access and ID tokens.
Userinfo URL
Key: sso.oidc.userinfo-url
Type: String
Default: Not set
The userinfo endpoint from which Gameyfin retrieves profile claims (name, email, roles, …) after a successful login.
JWKS URL
Key: sso.oidc.jwks-url
Type: String
Default: Not set
The JSON Web Key Set endpoint used to verify the signature of JWTs issued by your identity provider.
Logout URL
Key: sso.oidc.logout-url
Type: String
Default: Not set
The end-session endpoint to which Gameyfin redirects users after they log out, ensuring they are also signed out from the identity provider.
Enable E-Mail notifications
Key: messages.providers.email.enabled
Type: Boolean
Default: false
When enabled, Gameyfin can send e-mail notifications (e.g. sign-up confirmations, request updates) via the configured SMTP server.
URL of the email server
Key: messages.providers.email.host
Type: String
Default: Not set
Hostname or IP address of the SMTP server used to dispatch outgoing e-mails (e.g. smtp.gmail.com).
Port of the email server
Key: messages.providers.email.port
Type: Int
Default: 587
TCP port of the SMTP server. Common values: 587 (STARTTLS), 465 (SSL/TLS), 25 (unencrypted).
Username for the email account
Key: messages.providers.email.username
Type: String
Default: Not set
The username (usually the full e-mail address) used to authenticate with the SMTP server.
Password for the email account
Key: messages.providers.email.password
Type: String
Default: Not set
The password used to authenticate with the SMTP server. Keep this value confidential.
Storage folder for log files
Key: logs.folder
Type: String
Default: ./logs
Path to the directory where Gameyfin writes its log files. Can be absolute or relative to the working directory.
Log retention in days
Key: logs.max-history-days
Type: Int
Default: 30
Number of days log files are kept before being automatically deleted. Set to 0 to disable automatic clean-up.
Log level (Gameyfin)
Key: logs.level.gameyfin
Type: LogLevel
Default: INFO
Allowed values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF
Minimum severity level for Gameyfin's own log messages. Use DEBUG or TRACE for detailed troubleshooting output.
Log level (Root)
Key: logs.level.root
Type: LogLevel
Default: WARN
Allowed values: TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF
Minimum severity level for all other libraries and frameworks (Spring, Hibernate, …). It is recommended to keep this at WARN or ERROR in production.