Files
RedisClipSync/config.slave.properties.example

30 lines
1.0 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 从机示例配置v1.1.0):复制为 config.properties 后修改
# 角色MASTER(主机) 或 SLAVE(从机)
role=SLAVE
# Redis 服务器地址(需填写主机所连接的 Redis 服务器地址)
redis.host=192.168.1.100
# Redis 服务器端口
redis.port=6379
# Redis 密码(无密码则留空)
redis.password=
# 监听频道:从机订阅此频道以接收剪贴板数据(需与主机的某个目标频道一致)
slave.listen.channel=machine_a
# 从机唯一标识ID用于区分不同的从机设备建议使用IP或主机名
slave.id=192.168.1.50
# 统一日志目录:主机下发记录与本机上报行为都写到该目录(本机)
log.save.dir=./clipboard_logs/
# 传输加密开关(建议开启)
crypto.enabled=true
# AES-256 密钥Base64解码后必须为32字节主从必须一致
crypto.key=REPLACE_WITH_BASE64_32_BYTE_KEY
# 从机 master_to_slave.log 每条日志保留时长(秒)
slave.log.ttl.seconds=30
# 从机日志裁剪周期(秒)
slave.log.prune.interval.seconds=5