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