docs(config): 更新应用配置文件中的注释和日志路径设置
- 在 application.yml 中为模型 API 密钥添加了详细的认证说明注释 - 为生产环境配置文件添加了日志路径设置 - 在 application-prod.yml 中为模型 API 密钥添加了认证状态说明注释 - 修正了单元测试中 Spring 邮件属性的访问语法,从点号表示法改为方括号表示法 - 移除了生产环境配置中重复的日志路径配置
This commit is contained in:
parent
75fbc118e0
commit
cfe0710a49
@ -81,6 +81,8 @@ token:
|
||||
secret: "zYeOgTnK7bVJ154QKu2jFfjI9cU6fl2Koe5ZK7WT3//KXimzyIAQI8SIMUWJwuBnnnHUIATHGrUHtovRxtVctQ=="
|
||||
|
||||
logging:
|
||||
file:
|
||||
path: "/app/logs"
|
||||
level:
|
||||
com.ruoyi: info
|
||||
org.springframework: warn
|
||||
@ -121,6 +123,7 @@ notification-center:
|
||||
agent:
|
||||
model:
|
||||
base-url: "http://192.168.28.10:14081"
|
||||
# Current intranet model has no API-key authentication; deliberately empty, not a missing secret.
|
||||
api-key: ""
|
||||
model: "Qwen/Qwen3.8-27B-FP8"
|
||||
timeout-ms: 8000
|
||||
@ -133,6 +136,3 @@ supplier:
|
||||
license-path: "/app/.supplier-license-private"
|
||||
feedback:
|
||||
image-path: "/app/uploads-feedback-private"
|
||||
logging:
|
||||
file:
|
||||
path: "/app/logs"
|
||||
|
||||
@ -153,6 +153,8 @@ xss:
|
||||
agent:
|
||||
model:
|
||||
base-url: "http://192.168.28.10:14081"
|
||||
# Current intranet model accepts requests without authentication; no key has been issued.
|
||||
# If model-side authentication is enabled, put its real key here or in the environment profile yml.
|
||||
api-key: ""
|
||||
model: "Qwen/Qwen3.8-27B-FP8"
|
||||
timeout-ms: 8000
|
||||
|
||||
@ -24,9 +24,9 @@ class SelfContainedConfigurationTest {
|
||||
assertTrue(settings.getProperty(key) != null && !settings.getProperty(key).isBlank(),
|
||||
"Missing configured property in " + profile + ": " + key);
|
||||
}
|
||||
assertEquals("true", settings.getProperty("spring.mail.properties.mail.smtp.auth"));
|
||||
assertEquals("true", settings.getProperty("spring.mail.properties.mail.smtp.starttls.required"));
|
||||
assertEquals("true", settings.getProperty("spring.mail.properties.mail.smtp.ssl.checkserveridentity"));
|
||||
assertEquals("true", settings.getProperty("spring.mail.properties[mail.smtp.auth]"));
|
||||
assertEquals("true", settings.getProperty("spring.mail.properties[mail.smtp.starttls.required]"));
|
||||
assertEquals("true", settings.getProperty("spring.mail.properties[mail.smtp.ssl.checkserveridentity]"));
|
||||
assertEquals("cmvr-wms-" + (profile.equals("prod") ? "prod" : "dev"), settings.getProperty("minio.bucket-name"));
|
||||
assertEquals(profile.equals("prod") ? "prod" : "dev", settings.getProperty("minio.environment"));
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user