ops-console v1.0.2 (versionCode 8) 源码入库
This commit is contained in:
17
lib/config/prod_config.dart
Normal file
17
lib/config/prod_config.dart
Normal file
@@ -0,0 +1,17 @@
|
||||
/// 生产环境专属配置。
|
||||
///
|
||||
/// 由用户明确要求出正式版(域名 https://ips.ainetv.com)而启用。
|
||||
///
|
||||
/// 注意:生产地址仅限 `ips.ainetv.com` 子域,该子域**不在** [ProductionGuard]
|
||||
/// 的拒绝名单(精确匹配 `ainetv.com` / `api.ainetv.com` / `58.220.83.58`)内,
|
||||
/// 故守卫不会拦截本构建。若日后切换到 `api.ainetv.com` 或裸 `ainetv.com`,
|
||||
/// 需同步调整守卫的拒绝名单,否则启动会被 `exit(1)` 阻断。
|
||||
class ProdConfig {
|
||||
ProdConfig._();
|
||||
|
||||
/// 生产环境后端 origin。
|
||||
static const String apiBaseUrl = 'https://ips.ainetv.com';
|
||||
|
||||
/// 生产环境是否启用登录验证码。
|
||||
static const bool enableCaptcha = true;
|
||||
}
|
||||
Reference in New Issue
Block a user