Neda/Front/lib/config/app_config.dart
2026-03-06 19:55:18 +03:30

24 lines
1.2 KiB
Dart

// Server configuration — update before building.
class AppConfig {
// ── Debug mode ──────────────────────────────────────────────────────────
// true → از داده‌های فیک استفاده می‌کند (بدون نیاز به سرور)
// false → به سرور واقعی وصل می‌شود
static const bool debug = false;
// ── Server ───────────────────────────────────────────────────────────────
static const String serverHost = '10.225.63.122';
static const int serverPort = 8000;
static const int livekitPort = 7880;
static const bool useSecure = false;
static String get baseUrl =>
'${useSecure ? 'https' : 'http'}://$serverHost:$serverPort';
static String get wsBaseUrl =>
'${useSecure ? 'wss' : 'ws'}://$serverHost:$serverPort';
// آدرس سرور LiveKit (پورت جداگانه از بکند)
static String get livekitUrl =>
'${useSecure ? 'wss' : 'ws'}://$serverHost:$livekitPort';
}