merge multimedia.php with igdb.php
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
// igdb-settings.php
|
||||
|
||||
// CORS – gleiche Origins wie bei multimedia
|
||||
const IGDB_ALLOWED_ORIGINS = [
|
||||
'https://windesign.at',
|
||||
'https://multimedia.windesign.at',
|
||||
'https://api.windesign.at',
|
||||
'https://preview.flutlab.io',
|
||||
'https://*.flutlab.io',
|
||||
'http://localhost:*',
|
||||
'http://127.0.0.1:*',
|
||||
'https://localhost:*',
|
||||
'https://127.0.0.1:*',
|
||||
];
|
||||
|
||||
define('DATABASE_NAME', 'multimediaFlutter');
|
||||
define('DATABASE_USER', 'multimediaFlutter');
|
||||
define('DATABASE_PASSWORD', 'WeissIchNicht8');
|
||||
define('DATABASE_HOST', 'localhost');
|
||||
|
||||
// Twitch / IGDB OAuth
|
||||
define('TWITCH_CLIENT_ID', 'jnmt5hzqcrt7iitrvxckli0qfqa8bp');
|
||||
define('TWITCH_CLIENT_SECRET', 'iop63242aj4atxjruwbw2p2r11ho4g');
|
||||
|
||||
// Basis-URLs
|
||||
define('TWITCH_TOKEN_URL', 'https://id.twitch.tv/oauth2/token');
|
||||
define('IGDB_BASE_URL', 'https://api.igdb.com/v4');
|
||||
|
||||
// Token-Cache (kannst du beliebig verschieben)
|
||||
define('IGDB_TOKEN_CACHE_FILE', __DIR__ . '/igdb_token_cache.json');
|
||||
|
||||
// Debug-Flag für Logging
|
||||
define('IGDB_DEBUG', true);
|
||||
|
||||
// Wikipedia
|
||||
define('WIKI_DE_API_URL', 'https://de.wikipedia.org/w/api.php');
|
||||
define('WIKI_USER_AGENT', 'MultimediaFlutter/1.0 (https://windesign.at; Herwig.Birke@windesign.at)');
|
||||
Reference in New Issue
Block a user