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:
hailin 2026-02-01 21:58:03 -08:00
parent 981b11f746
commit 88ad3ab53d
5 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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=挖矿管理后台

View File

@ -4,9 +4,9 @@ const nextConfig = {
output: 'standalone',
async rewrites() {
// 获取 API 基础 URLKong 网关地址)
// 生产环境: 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';

View File

@ -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;

View File

@ -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,