|
|
<?php
|
|
|
// multimedia-settings.php – analog zu deinen bestehenden Projekten
|
|
|
|
|
|
const MM_ALLOWED_ORIGINS = [
|
|
|
'https://windesign.at',
|
|
|
'https://hedgehog.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');
|
|
|
|
|
|
define('UPLOAD_DIR', __DIR__ . '/multimedia/uploads');
|
|
|
define('UPLOAD_THUMB_DIR', __DIR__ . '/multimedia/uploads/thumbs');
|
|
|
define('UPLOAD_BASE_URL', 'https://api.windesign.at/multimedia/uploads');
|
|
|
|
|
|
define('MAX_UPLOAD_SIZE', 512 * 1024 * 1024);
|
|
|
define('MM_DEBUG', true);
|
|
|
|
|
|
// 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)');
|
|
|
|
|
|
?>
|