diff --git a/404.html b/404.html index 6e1ff891..47cf0280 100644 --- a/404.html +++ b/404.html @@ -5,7 +5,7 @@
Each config file is named after the type of the Client/Source. Within each file, a JSON array defines all of the instances for that type of Client/Source.
Example directory structure:
/CONFIG_DIR jellyfin.json lastfm.json koito.json
[ { "name": "Foxx JF Server", "id": "foxxJf", "data": { "url": "http://localhost:8096", "user": "FoxxMD", "apiKey": "c9fae8756fbf481ebd9c5bb56bd6540c" } }]
[ { "name": "Foxx JF Server", "id": "foxxJf", "data": { "url": "http://localhost:8096", "user": "FoxxMD", "apiKey": "c9fae8756fbf481ebd9c5bb56bd6540c" } }, { "name": "Foo's JF Server", "id": "fooJf", "data": { "url": "http://192.168.0.150:8096", "user": "foo", "apiKey": "9c5bb56bd6540c756fbf481ebd9c5c40" } }]
MS will parse an all-in-one configuration file (config.json) located in the directory specified by the CONFIG_DIR environmental variable. The file's location defaults to:
config.json
CONFIG_DIR
You can find an example of the file name that should be used under the File Configuration for each Source/Client. Note: this is the same value that is used for type in AIO configs.
type
/config/config.json
/config/config.json.example
{ "debugMode": false, "disableWeb": false, "sourceDefaults": { "logPayload": false, "logFilterFailure": "warn", "logPlayerState": false, "scrobbleThresholds": { "duration": 30, "percent": 50 }, "maxPollRetries": 1, "maxRequestRetries": 1, "retryMultiplier": 1.5 }, "clientDefaults": { "maxRequestRetries": 1, "retryMultiplier": 1.5 }, "sources": [ { "type": "spotify", "enable": true, "clients": ["myConfig"], "name": "Cool Spotify Name", "id": "mySpotifyId", "data": { "clientId": "a89cba1569901a0671d5a9875fed4be1", "clientSecret": "ec42e09d5ae0ee0f0816ca151008412a", "redirectUri": "http://localhost:9078/callback" } } ], "clients": [ { "type": "maloja", "enable": true, "name": "Foxx Maloja", "id": "myMalojaId", "data": { "url": "http://localhost:42010", "apiKey": "myMalojaKey" } } ], "webhooks": [ { "name": "FirstGotifyServer", "type": "gotify", "url": "http://localhost:8070", "token": "MyGotifyToken", "priorities": { "info": 5, "warn": 7, "error": 10 } }, { "type": "ntfy", "name": "MyNtfyFriendlyNameForLogs", "url": "http://localhost:9991", "topic": "MyMultiScrobblerTopic", "username": "Optional", "password": "Optional", "priorities": { "info": 3, "warn": 4, "error": 5 } } ]}
Compared to their File equivalent, Sources/Clients configured using AIO require an additional type property.
[ { "name": "Foxx JF Server", "type: "jellyfin", "id": "foxxJf", "data": { "url": "http://localhost:8096", "user": "FoxxMD", "apiKey": "c9fae8756fbf481ebd9c5bb56bd6540c" } }]
You can find an example of the required type value by referring to the AIO tab in each Source/Client's Configuration section example.
{ "sources": [ { "name": "Foxx JF Server", "type: "jellyfin", "id": "foxxJf", "data": { "url": "http://localhost:8096", "user": "FoxxMD", "apiKey": "c9fae8756fbf481ebd9c5bb56bd6540c" } } ]}
You can find an example of the required type value by referring to the AIO tab in each Source/Client's Configuration section example. This is the same value that is used as the name of individual File config files.
See the Configuration Types above for your options for creating Source and Client configurations.