mirror of
https://github.com/yibaiba/hideck.git
synced 2026-12-05 08:01:10 +00:00
146 lines
4.1 KiB
YAML
146 lines
4.1 KiB
YAML
server:
|
||
debug: false
|
||
port: 7575
|
||
# 使用 Nginx/Caddy 等外部 HTTPS 反向代理时保持 false。
|
||
https_enabled: false
|
||
https_port: 7576
|
||
webrtc_udp_address: ":7580"
|
||
# 服务器位于 NAT 后时填写直连本机的域名或公网 IP,并映射公网 7580/UDP。
|
||
webrtc_public_host: ""
|
||
tls_data_dir: data/tls
|
||
# tls_cert_file 与 tls_key_file 同时设置时覆盖自动本地 CA 证书。
|
||
tls_cert_file: ""
|
||
tls_key_file: ""
|
||
# 跨 NAT 时显式配置,例如 ["stun:stun.example.com:3478"]。
|
||
ice_servers: []
|
||
|
||
# 所有运营商按 ICCID 独立计数,数据库保留额度,重启不清零。
|
||
# 修改后重启生效;0/省略使用默认值,关闭必须明确设置 disabled: true。
|
||
outbound_limits:
|
||
calls:
|
||
disabled: false
|
||
interval_seconds: 10
|
||
per_hour: 20
|
||
per_day: 100
|
||
sms:
|
||
disabled: false
|
||
interval_seconds: 5
|
||
per_hour: 30
|
||
per_day: 100
|
||
# 按卡覆盖:键必须是加引号的 ICCID,未写字段继承全局配置。
|
||
cards: {}
|
||
# cards:
|
||
# "8986001234567890123":
|
||
# sms:
|
||
# per_day: 200
|
||
|
||
# 仅明确选择模组直拨时准备 QDC507GLEFM21;USB 写入后必要时自动重启目标模组一次。
|
||
# 设为 false 可禁止自动授权/修改 USB,已经开启的 ADB 仍可正常使用。
|
||
modem_voice:
|
||
auto_enable_adb: true
|
||
|
||
# 可在系统设置页面填写并测试。密码留空会保留已有值。
|
||
# 自动清理默认关闭,只会删除超过保留期且当前内容已成功归档的数据。
|
||
archive:
|
||
enabled: false
|
||
endpoint: ""
|
||
username: ""
|
||
password: ""
|
||
base_path: hideck
|
||
interval_hours: 24
|
||
retention_days: 30
|
||
auto_cleanup: false
|
||
include_sms: true
|
||
include_calls: true
|
||
include_recordings: true
|
||
|
||
system:
|
||
# 仅 OpenWrt 使用:把已拨号的数据网卡动态映射到 netifd,其他系统必须保持 false。
|
||
openwrt_dynamic_interfaces: false
|
||
auto_answer:
|
||
audio_file: data/phone/auto-answer.wav
|
||
devices: {}
|
||
|
||
web:
|
||
username: admin
|
||
# 首次登录后请在控制台修改;保存时会自动替换为 bcrypt 哈希。
|
||
# 若使用 PROXY_WEB_PASSWORD 注入,需在部署环境中修改,控制台不会覆盖环境变量。
|
||
password: admin
|
||
|
||
devices: []
|
||
# PC/SC 读卡器示例(Linux 需要 pcscd 与 libpcsclite.so.1):
|
||
# - id: reader1
|
||
# name: USB SIM reader
|
||
# device_backend: pcsc
|
||
# esim_transport: pcsc
|
||
# pcsc_reader_name: Example Reader 00 00
|
||
# pcsc_usb_path: 1-2
|
||
# sim_pin_env: HIDECK_SIM_PIN_READER1 # 只保存环境变量名,不要填写 PIN 明文
|
||
|
||
proxy:
|
||
instances: []
|
||
|
||
vowifi:
|
||
enabled: false
|
||
|
||
webhook:
|
||
enabled: false
|
||
|
||
# Telegram 机器人通过 @BotFather 创建,不使用扫码注册。
|
||
# admin_id 是允许执行命令的 Telegram 数字用户 ID;chat_id 留 0 时,首次授权私聊会自动绑定。
|
||
# 自动绑定目标保存在同目录 notification-state.json。不要提交包含真实 Bot Token 的配置文件。
|
||
telegram:
|
||
enabled: false
|
||
bot_token: ""
|
||
admin_id: 0
|
||
chat_id: 0
|
||
recording_mode: voice
|
||
base_url: ""
|
||
proxy: ""
|
||
|
||
# QQ Bot 可在设置页扫码注册,也可手工填写以下字段。
|
||
qq:
|
||
enabled: false
|
||
app_id: ""
|
||
app_secret: ""
|
||
group_ids: ""
|
||
direct_ids: ""
|
||
|
||
# 个人微信使用 iLink 扫码;登录 Token 和会话绑定保存在同目录 notification-state.json。
|
||
weixin:
|
||
enabled: false
|
||
base_url: https://ilinkai.weixin.qq.com
|
||
cdn_base_url: https://novac2c.cdn.weixin.qq.com/c2c
|
||
allowed_user_ids: []
|
||
allowed_group_ids: []
|
||
|
||
# 企业微信长连接机器人,与下方 Webhook 通知渠道相互独立。
|
||
wecom_bot:
|
||
enabled: false
|
||
bot_id: ""
|
||
secret: ""
|
||
websocket_url: wss://openws.work.weixin.qq.com
|
||
allowed_user_ids: []
|
||
allowed_group_ids: []
|
||
|
||
wecom:
|
||
enabled: false
|
||
urls: []
|
||
payload_template: |-
|
||
{
|
||
"msgtype": "text",
|
||
"text": {
|
||
"content": {{message}}
|
||
}
|
||
}
|
||
|
||
# 按渠道只推送部分设备的短信和来电;没列出的渠道推送全部设备。
|
||
# 渠道名:telegram、feishu、qq、weixin、wecom_bot、webhook、bark、email、pushplus、wecom
|
||
# notification_device_filters:
|
||
# telegram: [modem-1]
|
||
# bark: [modem-2, modem-3]
|
||
|
||
# MCP 与现有 HTTP/HTTPS 共用端口,令牌在网页设置中管理。
|
||
mcp:
|
||
enabled: false
|