- 创建 .gitea/workflows/ci.yml 四 job 并行流水线 (rust-check, rust-test, frontend-build, security-audit) - Docker Compose 端口不暴露到宿主机(使用 expose) - Redis 添加 requirepass 密码认证 - 添加容器资源限制 (1 CPU / 512MB) - Redis URL 格式更新为带密码认证
27 lines
543 B
TOML
27 lines
543 B
TOML
[server]
|
|
host = "0.0.0.0"
|
|
port = 3000
|
|
|
|
[database]
|
|
url = "__MUST_SET_VIA_ENV__"
|
|
max_connections = 20
|
|
min_connections = 5
|
|
|
|
[redis]
|
|
url = "redis://:erp_redis_dev@localhost:6379"
|
|
|
|
[jwt]
|
|
secret = "__MUST_SET_VIA_ENV__"
|
|
access_token_ttl = "15m"
|
|
refresh_token_ttl = "7d"
|
|
|
|
[auth]
|
|
super_admin_password = "__MUST_SET_VIA_ENV__"
|
|
|
|
[log]
|
|
level = "info"
|
|
|
|
[cors]
|
|
# Comma-separated allowed origins. Use "*" for development only.
|
|
allowed_origins = "http://localhost:5173,http://localhost:5174,http://localhost:5175,http://localhost:5176,http://localhost:3000"
|