-
-
Notifications
You must be signed in to change notification settings - Fork 13
Configuration File
Michael Green edited this page Feb 2, 2024
·
2 revisions
When Gaseous-Server is started for the first time, it creates a configuration file at ~/.gaseous-server/config.json if it doesn't exist. Some values can be filled in using environment variables (such as in the case of using docker).
Attribute | Environment Variable | Default Value |
---|---|---|
HostName | dbhost | localhost |
UserName | dbuser | gaseous |
Password | dbpass | gaseous |
DatabaseName | dbname | gaseous |
Port | dbport | 3306 |
Attribute | Environment Variable | Possible Values | Default Value |
---|---|---|---|
MetadataSource | metadatasource | IGDB | IGDB |
SignatureSource | signaturesource | LocalOnly Hasheous |
LocalOnly |
MaxLibraryScanWorkers | maxlibraryscanworkers | 4 | |
HasheousHost | hasheoushost | https://hasheous.org/ |
- MetadataSource is reserved for future use - currently only IGDB is available
- SignatureSource governs where Gaseous will look for ROM hash signatures (typically from DATs):
- LocalOnly (default): sets Gaseous to only look in the local database for DATs. You will need to import the DATs yourself (see: https://github.com/gaseous-project/gaseous-server/wiki/Signatures#local-signatures)
- Hasheous: sets Gaseous to also refer to the Hasheous service when attempting to match a signature (see: https://github.com/gaseous-project/gaseous-server/wiki/Signatures#hasheous, and the Hasheous project: https://github.com/gaseous-project/hasheous)
- MaxLibraryScanWorkers: sets the number of maximum number of workers that Gaseous will use when performing a Library Scan. Each library is allocated one worker to scan it's content. Setting this too high may cause:
- server performance issues, and/or
- the IGDB API to throttle your connection (IGDB only allows 4 API calls per second)
- HasheousHost: sets the host that Gaseous will use for the Hasheous service (see: https://github.com/gaseous-project/gaseous-server/wiki/Signatures#hasheous)
Attribute | Environment Variable |
---|---|
ClientId | igdbclientid |
Secret. | igdbclientsecret |
See https://github.com/gaseous-project/gaseous-server/wiki/Metadata#igdb for information on configuring these attributes.
{
"DatabaseConfiguration": {
"HostName": "localhost",
"UserName": "gaseous",
"Password": "gaseous",
"DatabaseName": "gaseous",
"Port": 3306
},
"MetadataConfiguration": {
"MetadataSource": "IGDB",
"SignatureSource": "LocalOnly",
"MaxLibraryScanWorkers": 4,
"HasheousHost": "https://hasheous.org/"
},
"IGDBConfiguration": {
"ClientId": "<clientid>",
"Secret": "<secret>"
},
"LoggingConfiguration": {
"DebugLogging": false,
"LogRetention": 7,
"AlwaysLogToDisk": false
}
}