Add load state API endpoint
[gamestick-pjgsapi.git] / config.php.dist
1 <?php
2 //gamestick hardware IDs that may use this server
3 $GLOBALS['whitelistedHardwareIds'] = [
4     'ac:db:da:09:18:5c',//cweiske
5 ];
6
7 $GLOBALS['db'] = [
8     'dsn'      => 'mysql:host=localhost;dbname=pjgsapi',
9     'username' => 'pjgsapi',
10     'password' => 'pjgsapi',
11 ];
12
13 $GLOBALS['verificationCodePrefix'] = '';
14
15 //offer a certain firmware version, even for downgrading
16 //$GLOBALS['firmwareVersion'] = '0.9.2071';
17
18 //popular games. first in array means most popular
19 $GLOBALS['popular'] = [
20     'de.eiswuxe.blookid'
21 ];
22 //file format: one line = one package name
23 $GLOBALS['popuplarTxtFile'] = __DIR__ . '/cache/popular.txt';
24
25 //featured games in main menu
26 // number is image height: 6, 4, 3, 2
27 $GLOBALS['featured'] = [
28     3 => [
29         'de.eiswuxe.blookid' => 6,
30     ],
31     7 => [
32         'de.eiswuxe.blookid' => 6,
33     ],
34     12 => [
35         'de.eiswuxe.blookid' => 6,
36     ],
37     17 => [
38         'de.eiswuxe.blookid' => 6,
39     ],
40 ];
41 $GLOBALS['featuredFile'] = __DIR__ . '/cache/featured.json';
42
43 //if the server/network is too fast for the gamestick
44 // and the gamestick produces race condition errors
45 // only needed when hosting a local server
46 // https://cweiske.de/tagebuch/gamestick-black-screen.htm#race
47 $GLOBALS['toofast'] = false;