Compare commits

...

2 Commits

Author SHA1 Message Date
9e57ed1690 feat: 优化 mond.service 配置
All checks were successful
Build and Release Mond / build-and-test (arm64) (push) Successful in 39s
Build and Release Mond / build-and-test (amd64) (push) Successful in 51s
Build and Release Mond / release (push) Successful in 1m17s
添加生产环境优化配置:
- 启用区块链修剪(--prune-blockchain)
- 配置 ZMQ 发布端点(tcp://127.0.0.1:18083)
- 优化节点连接数(out-peers: 32, in-peers: 64)
- 添加优先节点(xmrvsbeast, hashvault)
- 启用 DNS 检查点和黑名单
- 设置日志级别为 1
- 非交互模式运行
2025-12-15 14:57:51 +08:00
89f909606c ci: 移除静态链接验证步骤 2025-12-15 14:56:53 +08:00
2 changed files with 13 additions and 22 deletions

View File

@@ -50,27 +50,6 @@ jobs:
--output type=local,dest=./output \
-f docker/Dockerfile.ubuntu .
- name: Verify static linking
run: |
DIR="./output/linux_${{ matrix.arch }}"
BINARY="${DIR}/mond"
if [ ! -f "$BINARY" ]; then
echo "❌ 二进制文件不存在: $BINARY"
exit 1
fi
echo "🔍 验证静态链接..."
if ldd "$BINARY" 2>&1 | grep -q "not a dynamic executable"; then
echo "✅ 纯静态链接验证成功"
else
echo "❌ 静态链接验证失败,发现动态库依赖:"
ldd "$BINARY" || true
exit 1
fi
file "$BINARY"
- name: Package and test
run: |
DIR="./output/linux_${{ matrix.arch }}"

14
debian/mond.service vendored
View File

@@ -9,7 +9,19 @@ Type=simple
WorkingDirectory=/opt/mond
# 执行命令
ExecStart=/opt/mond/mond --data-dir=/var/lib/mond --log-file=/var/log/mond/mond.log --detach
ExecStart=/opt/mond/mond \
--data-dir=/var/lib/mond \
--prune-blockchain \
--zmq-pub tcp://127.0.0.1:18083 \
--out-peers=32 \
--in-peers=64 \
--add-priority-node=p2pmd.xmrvsbeast.com:18080 \
--add-priority-node=nodes.hashvault.pro:18080 \
--enforce-dns-checkpointing \
--enable-dns-blocklist \
--log-level 1 \
--log-file=/var/log/mond/mond.log \
--non-interactive
# 重启策略
Restart=always