- 新增磁盘加密、打印审计和剪贴板管控插件支持 - 优化水印插件显示效果,支持中文及更多Unicode字符 - 改进硬件资产收集逻辑,更准确获取磁盘和显卡信息 - 增强API错误处理,添加详细日志记录 - 完善前端界面,新增插件管理页面 - 修复多个UI问题,优化页面过渡效果 - 添加环境变量覆盖配置功能 - 实现插件状态管理API - 更新文档和变更日志 - 添加安装程序脚本支持
48 lines
1.3 KiB
Plaintext
48 lines
1.3 KiB
Plaintext
# CSM Server Configuration Template
|
|
# Copy this file to config.toml and edit before starting the server.
|
|
|
|
[server]
|
|
# HTTP API + WebSocket listener (also serves the web UI)
|
|
http_addr = "0.0.0.0:9998"
|
|
# TCP listener for client agent connections
|
|
tcp_addr = "0.0.0.0:9999"
|
|
# CORS origins (empty = same-origin only; set to ["http://localhost:9997"] for dev proxy)
|
|
cors_origins = []
|
|
|
|
# [server.tls] # Uncomment to enable TLS on the TCP listener
|
|
# cert_path = "cert.pem"
|
|
# key_path = "key.pem"
|
|
|
|
[database]
|
|
# SQLite database path (relative to working directory)
|
|
path = "./csm.db"
|
|
|
|
[auth]
|
|
# JWT signing secret. Leave empty to auto-generate on first run.
|
|
# Override with CSM_JWT_SECRET environment variable.
|
|
jwt_secret = ""
|
|
access_token_ttl_secs = 1800 # 30 minutes
|
|
refresh_token_ttl_secs = 604800 # 7 days
|
|
|
|
# Device registration token. Leave empty to auto-generate on first run.
|
|
# Override with CSM_REGISTRATION_TOKEN environment variable.
|
|
# Clients must present this token when registering.
|
|
registration_token = ""
|
|
|
|
[retention]
|
|
# Data retention periods in days
|
|
status_history_days = 7
|
|
usb_events_days = 90
|
|
asset_changes_days = 365
|
|
alert_records_days = 90
|
|
audit_log_days = 365
|
|
|
|
# [notify] # Uncomment to enable notifications
|
|
# [notify.smtp]
|
|
# host = "smtp.example.com"
|
|
# port = 587
|
|
# username = "user@example.com"
|
|
# password = "secret"
|
|
# from = "csm@example.com"
|
|
# webhook_urls = []
|