fix ci and lint (#232) fix: 🐛 tsconfig fix: 🐛 fixable lint fix: 🐛 rule
fix ci and lint (#232)
fix: 🐛 tsconfig
fix: 🐛 fixable lint
fix: 🐛 rule
Wechaty Puppet Service is gRPC for Wechaty Puppet Provider.
For example, we can cloudify the Wechaty Puppet Provider wechaty-puppet-padlocal to a Wechaty Puppet Service by running our Wechaty Puppet Service Token Gateway.
If you want to learn more about what is Wechaty Puppet and Wechaty Puppet Service, we have a blog post to explain them in details at https://wechaty.js.org/2021/01/14/wechaty-puppet-service/
import { WechatyBuilder } from 'wechaty' const wechaty = WechatyBuilder.build({ puppet: 'wechaty-puppet-service', puppetOptions: { token: `${TOKEN}` } }) wechaty.start()
Learn more about Wechaty Puppet Token from our official website: http://wechaty.js.org/docs/puppet-services/
WECHATY_PUPPET_SERVICE_TOKEN
The token set to this environment variable will become the default value of puppetOptions.token
puppetOptions.token
WECHATY_PUPPET_SERVICE_TOKEN=${WECHATY_PUPPET_SERVCIE_TOKEN} node bot.js
From version 0.37, Wechaty Puppet Service start supporting the GRPC Health Checking Protocol.
$ npm install --global wechaty-token $ go install github.com/grpc-ecosystem/grpc-health-probe@latest $ wechaty-token discovery uuid_12345678-1234-1234-1234-567812345678 {"host": 1.2.3.4, "port": 5678} $ grpc-health-probe -tls -tls-no-verify -addr 1.2.3.4 status: SERVING
See:
WECHATY_PUPPET_SERVICE_TLS_CA_CERT
options.tlsRootCert
For Puppet Server:
WECHATY_PUPPET_SERVICE_TLS_SERVER_CERT
options.tls.serverCert
WECHATY_PUPPET_SERVICE_TLS_SERVER_KEY
options.tls.serverKey
WECHATY_PUPPET_SERVICE_NO_TLS_INSECURE_SERVER
options.tls.disable
true
For Puppet Client:
WECHATY_PUPPET_SERVICE_AUTHORITY
options.authority
api.chatie.io
options.caCert
WECHATY_PUPPET_SERVICE_TLS_SERVER_NAME
options.serverName
WECHATY_PUPPET_SERVICE_NO_TLS_INSECURE_CLIENT
Release v1.0 of Wechaty Puppet Service.
wechaty
WECHATY_SERVICE_DISCOVERY_ENDPOINT
Rename from wechaty-puppet-hostie to wechaty-puppet-service (Issue #118)
See: Issue #78: gRPC server can use the authority to identify current user
Beta Version
Designing the puppet hostie with the following protocols:
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
wechaty-puppet-service
Wechaty Puppet Service is gRPC for Wechaty Puppet Provider.
For example, we can cloudify the Wechaty Puppet Provider wechaty-puppet-padlocal to a Wechaty Puppet Service by running our Wechaty Puppet Service Token Gateway.
If you want to learn more about what is Wechaty Puppet and Wechaty Puppet Service, we have a blog post to explain them in details at https://wechaty.js.org/2021/01/14/wechaty-puppet-service/
Features
Usage
Learn more about Wechaty Puppet Token from our official website: http://wechaty.js.org/docs/puppet-services/
Environment Variables
1
WECHATY_PUPPET_SERVICE_TOKENThe token set to this environment variable will become the default value of
puppetOptions.tokengRPC Health Checking Protocol
From version 0.37, Wechaty Puppet Service start supporting the GRPC Health Checking Protocol.
See:
Resources
Authentication
History
master v0.31
v0.30 (Aug 25, 2021)
New environment variables
WECHATY_PUPPET_SERVICE_TLS_CA_CERT: can be overwrite byoptions.tlsRootCert. Set Root CA Cert to verify the server or client.For Puppet Server:
WECHATY_PUPPET_SERVICE_TLS_SERVER_CERToptions.tls.serverCertWECHATY_PUPPET_SERVICE_TLS_SERVER_KEYoptions.tls.serverKeyWECHATY_PUPPET_SERVICE_NO_TLS_INSECURE_SERVERoptions.tls.disabletrueto disable server TLSFor Puppet Client:
WECHATY_PUPPET_SERVICE_AUTHORITYoptions.authorityapi.chatie.ioWECHATY_PUPPET_SERVICE_TLS_CA_CERToptions.caCertWECHATY_PUPPET_SERVICE_TLS_SERVER_NAMEoptions.serverNameWECHATY_PUPPET_SERVICE_NO_TLS_INSECURE_CLIENToptions.tls.disabletrueto disable client TLSChangelog
main v1.0 (Oct 29, 2021)
Release v1.0 of Wechaty Puppet Service.
wechatyschema (xDS like)WECHATY_SERVICE_DISCOVERY_ENDPOINT, replaced byWECHATY_PUPPET_SERVICE_AUTHORITY. (See #156)v0.14 (Jan 2021)
Rename from
wechaty-puppet-hostieto wechaty-puppet-service (Issue #118)v0.10.4 (Oct 2020)
v0.6 (Apr 2020)
Beta Version
v0.3 (Feb 2020)
v0.0.1 (Jun 2018)
Designing the puppet hostie with the following protocols:
Maintainers
Copyright & License