24 lines
1.2 KiB
Dart
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';
|
|
}
|