feat: 2.0 API 域名从 rwaapi.szaiai.com 迁移到 mapi.szaiai.com
- mining-admin-web: .env.production, next.config.js fallback URL - mining-app: environment.dart baseUrl, update_config.dart checkUpdateUrl - docker-compose.2.0.yml: mining-admin-service UPLOAD_BASE_URL Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
981b11f746
commit
88ad3ab53d
|
|
@ -287,7 +287,7 @@ services:
|
|||
AUTH_SERVICE_URL: http://auth-service:3024
|
||||
JWT_SECRET: ${ADMIN_JWT_SECRET:-your-admin-jwt-secret-change-in-production}
|
||||
# APK 下载地址前缀(通过 Kong 网关 /mining-admin 路由访问)
|
||||
UPLOAD_BASE_URL: https://rwaapi.szaiai.com/mining-admin/downloads
|
||||
UPLOAD_BASE_URL: https://mapi.szaiai.com/mining-admin/downloads
|
||||
UPLOAD_DIR: ./uploads
|
||||
volumes:
|
||||
- mining-admin-uploads:/app/uploads
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
NEXT_PUBLIC_API_URL=https://rwaapi.szaiai.com/api/v2/mining-admin
|
||||
TRADING_SERVICE_URL=https://rwaapi.szaiai.com/api/v2/trading
|
||||
NEXT_PUBLIC_API_URL=https://mapi.szaiai.com/api/v2/mining-admin
|
||||
TRADING_SERVICE_URL=https://mapi.szaiai.com/api/v2/trading
|
||||
NEXT_PUBLIC_APP_NAME=挖矿管理后台
|
||||
|
|
|
|||
|
|
@ -4,9 +4,9 @@ const nextConfig = {
|
|||
output: 'standalone',
|
||||
async rewrites() {
|
||||
// 获取 API 基础 URL(Kong 网关地址)
|
||||
// 生产环境: https://rwaapi.szaiai.com
|
||||
// 生产环境: https://mapi.szaiai.com
|
||||
// 开发环境: http://localhost:3023 (mining-admin-service)
|
||||
const apiGatewayUrl = process.env.API_GATEWAY_URL || 'https://rwaapi.szaiai.com';
|
||||
const apiGatewayUrl = process.env.API_GATEWAY_URL || 'https://mapi.szaiai.com';
|
||||
const miningAdminUrl = process.env.NEXT_PUBLIC_API_URL || 'http://localhost:3023';
|
||||
const tradingServiceUrl = process.env.TRADING_SERVICE_URL || 'http://localhost:3022';
|
||||
const miningServiceUrl = process.env.MINING_SERVICE_URL || 'http://localhost:3021';
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import 'package:flutter/foundation.dart';
|
|||
|
||||
class EnvironmentConfig {
|
||||
// API 基础地址 - Kong 网关
|
||||
static const String baseUrl = 'https://rwaapi.szaiai.com';
|
||||
static const String baseUrl = 'https://mapi.szaiai.com';
|
||||
|
||||
// 是否为调试模式
|
||||
static bool get isDebug => kDebugMode;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ class UpdateConfig {
|
|||
|
||||
/// Mining App 默认配置
|
||||
static const mining = UpdateConfig(
|
||||
checkUpdateUrl: 'https://rwaapi.szaiai.com/mining-admin/api/app/version/check',
|
||||
checkUpdateUrl: 'https://mapi.szaiai.com/mining-admin/api/app/version/check',
|
||||
packageName: 'com.durianqueen.mining',
|
||||
checkIntervalMinutes: 60,
|
||||
autoCheck: true,
|
||||
|
|
|
|||
Loading…
Reference in New Issue