mirror of
https://github.com/jeffusion/gitea-ai-assistant.git
synced 2026-03-27 10:05:50 +00:00
chore(deploy): set production LOG_LEVEL to error
Configure production deployments to use LOG_LEVEL=error for minimal log volume. - Add LOG_LEVEL=error to docker-compose.yml environment - Add LOG_LEVEL: error to K8s ConfigMap - Update .env.example with dev/prod LOG_LEVEL guidance Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)
This commit is contained in:
@@ -2,6 +2,10 @@
|
|||||||
PORT=5174
|
PORT=5174
|
||||||
# 可选,默认为 ./data/assistant.db
|
# 可选,默认为 ./data/assistant.db
|
||||||
# DATABASE_PATH=./data/assistant.db
|
# DATABASE_PATH=./data/assistant.db
|
||||||
|
# 可选,默认 info,可选值:debug/info/warn/error
|
||||||
|
# 开发环境建议:LOG_LEVEL=info
|
||||||
|
# 生产环境建议:LOG_LEVEL=error
|
||||||
|
# LOG_LEVEL=info
|
||||||
# 必填,运行 openssl rand -hex 32 生成
|
# 必填,运行 openssl rand -hex 32 生成
|
||||||
ENCRYPTION_KEY=
|
ENCRYPTION_KEY=
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ services:
|
|||||||
- assistant_data:/app/data
|
- assistant_data:/app/data
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
|
environment:
|
||||||
|
LOG_LEVEL: error
|
||||||
depends_on:
|
depends_on:
|
||||||
qdrant:
|
qdrant:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ metadata:
|
|||||||
app.kubernetes.io/part-of: gitea-assistant
|
app.kubernetes.io/part-of: gitea-assistant
|
||||||
data:
|
data:
|
||||||
PORT: "5174"
|
PORT: "5174"
|
||||||
|
LOG_LEVEL: "error"
|
||||||
# All settings (Gitea connection, webhook secret, admin password, review engine,
|
# All settings (Gitea connection, webhook secret, admin password, review engine,
|
||||||
# Feishu, memory, etc.) are managed through the Admin Dashboard Web UI.
|
# Feishu, memory, etc.) are managed through the Admin Dashboard Web UI.
|
||||||
# They are auto-seeded with secure defaults on first boot.
|
# They are auto-seeded with secure defaults on first boot.
|
||||||
|
|||||||
Reference in New Issue
Block a user