chore: 更新配置和环境变量适配云端 Supabase

This commit is contained in:
qzl
2026-03-10 17:44:08 +08:00
parent 95d6927724
commit 8da9377ed9
5 changed files with 7 additions and 5 deletions
+3 -4
View File
@@ -48,9 +48,9 @@ SOCIAL_WORKER__GROUPS__BULK__CONCURRENCY=1
SOCIAL_SUPABASE__PUBLIC_URL=https://your-project.supabase.co
SOCIAL_SUPABASE__ANON_KEY=
SOCIAL_SUPABASE__SERVICE_ROLE_KEY=
# Cloud Auth 可选配置(默认值已满足大多数场景)
SOCIAL_SUPABASE__JWT_AUDIENCE=authenticated
# 使用阿里云 DescribeInstanceAuthInfo 返回的 JwtSecret
SOCIAL_SUPABASE__JWT_SECRET=
SOCIAL_SUPABASE__JWT_ALGORITHM=HS256
# Postgres 连接信息(后端与 Supabase 共用密码)
SOCIAL_DATABASE__HOST=localhost
@@ -59,7 +59,6 @@ SOCIAL_DATABASE__NAME=postgres
SOCIAL_DATABASE__USER=postgres
SOCIAL_DATABASE__PASSWORD=change-me-strong-password
############
# Agent Chat 附件存储配置(仅基础设施变量)
############
@@ -3,6 +3,7 @@
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<application
android:usesCleartextTraffic="true"
android:label="social_app"
android:name="${applicationName}"
android:icon="@mipmap/ic_launcher">
+1 -1
View File
@@ -5,7 +5,7 @@ class Env {
const url = String.fromEnvironment('API_URL');
if (url.isNotEmpty) return url;
if (Platform.isAndroid) {
return 'http://10.0.2.2:5775';
return 'http://192.168.1.25:5775';
}
return 'http://localhost:5775';
}
+1
View File
@@ -108,6 +108,7 @@ class AppColors {
class AppSpacing {
AppSpacing._();
static const double none = 0.0;
static const double xs = 4.0;
static const double sm = 8.0;
static const double md = 12.0;
@@ -82,6 +82,7 @@ class AgUiService {
'audio': await MultipartFile.fromFile(
filePath,
filename: 'recording.wav',
contentType: DioMediaType('audio', 'wav'),
),
});
final response = await _apiClient.post<Map<String, dynamic>>(