application-saaslocal.yml
2.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Local override profile so xlyAi runs against the saas-8s+ local stack on macOS.
#
# Run: JAVA_HOME=$(/usr/libexec/java_home -v 17) ./mvnw spring-boot:run \
# -Dspring-boot.run.profiles=saaslocal
#
# Only overrides what differs from the committed application.yml (which targets a
# remote Windows deploy). Redis already points at the local shared redis-local
# (127.0.0.1:16379 / db 0) so it is inherited unchanged. Milvus/Ollama stay remote
# — their clients are lazy, so the app boots even if they are unreachable.
logging:
dirpath: /Users/reporkey/Desktop/saas-8s+/logs/xlyAi
spring:
datasource:
# Local saas DB from docker-compose.saas.yml (mysql-saas, root/local).
url: jdbc:mysql://127.0.0.1:33307/xlyweberp_saas?allowPublicKeyRetrieval=true&keepAlive=true&autoReconnect=true&autoReconnectForPools=true&connectTimeout=30000&socketTimeout=180000&nullCatalogMeansCurrent=true&allowMultiQueries=true&useSSL=false&useUnicode=true&characterEncoding=utf-8&failOverReadOnly=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=CONVERT_TO_NULL
username: root
password: local
# macOS-friendly temp path (was D:/xlyweberp/ai/ocrtmp)
ocr:
tmpPath: /Users/reporkey/Desktop/saas-8s+/tempPath/ocrtmp
# Point ERP form-read API at the LOCAL xlyEntry (:8697, ctx /xlyEntry) which uses the
# same local DB. The committed application.yml erp.baseurl targets the remote deploy.
# dev-login lets xlyAi mint a working ERP session locally (admin/666666, brand 1111111111);
# production should instead pass through the user's own browser ERP token per request.
langchain4j:
ollama:
# qwen3:14b follows instructions better and keeps its chain-of-thought on a
# separate channel (Ollama "thinking"), so it doesn't leak into the streamed content.
chat-model-name: qwen3:14b
erp:
baseurl: http://127.0.0.1:8697/xlyEntry
dev-login:
enabled: true
brand: "1111111111"
subsidiary: "1111111111"
username: admin
password: "666666"
# 写入确认执行路径(架构 §10):
# false = xlyAi 直连 ERP 通用写接口执行(本地默认,已测)。
# true = 委托 ERP 侧暂存执行器 /ai/execStaging(生产路径,以用户 token 身份执行、事务化、支持审核/预填/待办)。
exec-staging:
enabled: false
# LLM 可观测(Langfuse,架构 §1)。默认关闭;自托管起来后填 key 开启:
# docker compose -f docker-compose.langfuse.yml up -d → http://localhost:3000 拿 public/secret key。
langfuse:
enabled: false
host: http://localhost:3000
public-key: ""
secret-key: ""