You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.2 KiB
Dart
37 lines
1.2 KiB
Dart
/// Globale Konfiguration. Standard: von `--dart-define` lesen.
|
|
/// Fallbacks sind hilfreich für lokale Tests.
|
|
library;
|
|
|
|
class AppConfig {
|
|
static const backendBaseUrl = String.fromEnvironment(
|
|
'BACKEND_BASE_URL',
|
|
defaultValue: 'https://api.windesign.at/multimedia.php',
|
|
);
|
|
|
|
/// Token eines vorhandenen Users in deiner DB (users.api_token)
|
|
static const backendToken = String.fromEnvironment(
|
|
'BACKEND_TOKEN',
|
|
defaultValue: 'dasistwiedereinverystrongtoken',
|
|
);
|
|
|
|
/// TMDB API Key (nur lesend). Für Public-Apps besser: Server-Proxy/Caching.
|
|
static const tmdbApiKey = String.fromEnvironment(
|
|
'TMDB_API_KEY',
|
|
|
|
defaultValue: 'a33271b9e54cdcb9a80680eaf5522f1b',
|
|
|
|
///defaultValue: 'eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJhMzMyNzFiOWU1NGNkY2I5YTgwNjgwZWFmNTUyMmYxYiIsIm5iZiI6MTM0ODc2NTY2MS4wLCJzdWIiOiI1MDY0ODdkZDE5YzI5NTY2M2MwMDBhOGIiLCJzY29wZXMiOlsiYXBpX3JlYWQiXSwidmVyc2lvbiI6MX0.m26QybYBGQVY8OuL87FFae3ThPqAnOqEwgbLMtnH0wo'
|
|
);
|
|
|
|
// Concurrency caps
|
|
static const tmdbSeasonFetchConcurrency = int.fromEnvironment(
|
|
'TMDB_SEASON_CONCURRENCY',
|
|
defaultValue: 3,
|
|
);
|
|
|
|
static const dbEpisodeUpsertConcurrency = int.fromEnvironment(
|
|
'DB_EPISODE_UPSERT_CONCURRENCY',
|
|
defaultValue: 12,
|
|
);
|
|
}
|