@ardennguyen/zalo-agent-cli 2.5.4 → 2.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +14 -1
- package/package.json +1 -1
package/.env.example
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
# Recommended location: `~/.zalo-agent-cli/.env` (`<CONFIG_DIR>/.env`), or pass
|
|
5
5
|
# `--env-file /path/to/.env` (`ZALO_ENV_FILE=/path/to/.env`).
|
|
6
6
|
# Note: If you also use the `zalo-mcp` deployment wrapper, keep `zalo-mcp/.env`
|
|
7
|
-
# for port
|
|
7
|
+
# for the port (`ZALO_MCP_HTTP_PORT`) only, and put
|
|
8
8
|
# all storage paths and engine settings in `<CONFIG_DIR>/.env` so `zalo-mcp` and
|
|
9
9
|
# `zalo-agent` share a single source of truth.
|
|
10
10
|
# CLI flags and shell environment variables take precedence over `.env` values.
|
|
@@ -33,3 +33,16 @@
|
|
|
33
33
|
# Protocol version announced to Zalo (default: 691; set 685 to roll back):
|
|
34
34
|
# ZALO_API_VERSION=691
|
|
35
35
|
|
|
36
|
+
# ----------------------------------------------------------------------------
|
|
37
|
+
# MCP server / CRM backend (`zalo-agent mcp start`; all optional)
|
|
38
|
+
# Ready-to-copy files for local, LAN, internet, CRM and many-account setups:
|
|
39
|
+
# docs/configuration.md and docs/config-samples/. Every name below also takes a
|
|
40
|
+
# per-account form, e.g. ZALO_MCP_HTTP_PORT_<ownId>, which beats the plain name.
|
|
41
|
+
# Put secrets here (file mode 0600), never on the command line: a flag shows in `ps`.
|
|
42
|
+
# ----------------------------------------------------------------------------
|
|
43
|
+
# ZALO_MCP_HTTP_PORT=3847 # serve HTTP instead of stdio
|
|
44
|
+
# ZALO_MCP_HOST=127.0.0.1 # bind address; never 0.0.0.0 without a token
|
|
45
|
+
# ZALO_MCP_AUTH_TOKEN= # bearer token: openssl rand -hex 32
|
|
46
|
+
# ZALO_WEBHOOK_URL= # POST each incoming message here
|
|
47
|
+
# ZALO_WEBHOOK_SECRET= # signs it (X-Zalo-Signature: sha256=...)
|
|
48
|
+
|
package/package.json
CHANGED