Skip to content

Commit 054ce83

Browse files
add wechaty ca, see wechaty/php-wechaty#16
1 parent 93de24a commit 054ce83

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Diff for: README.md

+25
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,31 @@ export WECHATY_PUPPET_HOSTIE_TOKEN=your_token_at_here
5252
make bot
5353
```
5454

55+
#### New environment variables
56+
57+
<!-- markdownlint-disable MD013 -->
58+
59+
1. `WECHATY_PUPPET_SERVICE_TLS_CA_CERT`: can be overwrite by `options.tlsRootCert`. Set Root CA Cert to verify the server or client.
60+
61+
For Puppet Server:
62+
63+
| Environment Variable | Options | Description |
64+
| -------------------- | ------- | ----------- |
65+
| `WECHATY_PUPPET_SERVICE_TLS_SERVER_CERT` | `options.tls.serverCert` | Server CA Cert (string data) |
66+
| `WECHATY_PUPPET_SERVICE_TLS_SERVER_KEY` | `options.tls.serverKey` | Server CA Key (string data) |
67+
| `WECHATY_PUPPET_SERVICE_NO_TLS_INSECURE_SERVER` | `options.tls.disable` | Set `true` to disable server TLS |
68+
69+
For Puppet Client:
70+
71+
| Environment Variable | Options | Description |
72+
| -------------------- | ------- | ----------- |
73+
| `WECHATY_PUPPET_SERVICE_AUTHORITY` | `options.authority` | Service discovery host, default: `api.chatie.io` |
74+
| `WECHATY_PUPPET_SERVICE_TLS_CA_CERT` | `options.caCert` | Certification Authority Root Cert, default is using Wechaty Community root cert |
75+
| `WECHATY_PUPPET_SERVICE_TLS_SERVER_NAME` | `options.serverName` | Server Name (mast match for SNI) |
76+
| `WECHATY_PUPPET_SERVICE_NO_TLS_INSECURE_CLIENT` | `options.tls.disable` | Set `true` to disable client TLS |
77+
78+
> Learn more about tls at https://github.com/wechaty/puppet-service
79+
5580
## Wechaty Getting Started in Multiple Languages
5681

5782
- [TypeScript Wechaty Getting Started](https://github.com/wechaty/wechaty-getting-started)

0 commit comments

Comments
 (0)