用Matrix和wechaty来聊微信

Matrix chat是一个很不错的聊天软件,它支持了多种聊天协议和聊天机器人。并且支持通过matrix-appservice-wechaty来支持微信聊天。 现在我来梳理一下matrix-appservice-wechaty的部署方法。

需要准备的东西

  1. 域名(假设你的域名是example.com)
  2. 服务器,最好国内的

配置流程

配置域名解析
Type Host Priority Weight Port Target
A matrix - - - matrix-server-IP
CNAME element - - - matrix.
CNAME dimension (*) - - - matrix.
CNAME jitsi (*) - - - matrix.
SRV _matrix-identity._tcp 10 0 443 matrix.
配置matrix chat
git clone https://github.com/spantaleev/matrix-docker-ansible-deploy.gitmkdir inventory/host_vars/example.com/
export MATRIX_REGISTRATION_ADMIN_SECRET=$(pwgen -s 64 1)
echo '
matrix_domain: example.com
matrix_ssl_lets_encrypt_support_email: ${email}
matrix_synapse_enable_registration: true
matrix_registration_admin_secret: "${MATRIX_REGISTRATION_ADMIN_SECRET}"
matrix_postgres_connection_password: 'synapse-password'
matrix_synapse_federation_enabled: true
matrix_ma1sd_enabled: true
' > inventory/host_vars/example.com/vars.yml
echo 'example.com ansible_host=example
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值