You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Load config.json on startup (when hosted on a server)
- serverCfg takes priority over localStorage for all settings
- Supports: appName, base, instance, apikey, country, delayMin, delayMax
- Settings modal shows notice when server config is active
- Add config.example.json as template (config.json is gitignored)
- Update README with server deployment instructions
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+26-2Lines changed: 26 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -57,10 +57,34 @@ A browser-based WhatsApp management interface built on top of [Evolution API v2]
57
57
58
58
---
59
59
60
+
## Server Deployment — `config.json`
61
+
62
+
When hosting on a web server, you can pre-configure all settings centrally using a `config.json` file placed next to `index.html`. Users won't need to touch Settings — everything is loaded automatically.
63
+
64
+
Copy `config.example.json` → `config.json` and fill in your values:
65
+
66
+
```json
67
+
{
68
+
"appName": "My Business",
69
+
"base": "https://your-evolution-api-server.com",
70
+
"instance": "MyInstance",
71
+
"apikey": "your-api-key-here",
72
+
"country": "IL",
73
+
"delayMin": 1,
74
+
"delayMax": 5
75
+
}
76
+
```
77
+
78
+
Any field can be omitted — omitted fields fall back to the user's local browser settings.
79
+
80
+
> **Note:**`config.json` is listed in `.gitignore` so your credentials are never committed to the repo.
81
+
82
+
---
83
+
60
84
## Security
61
85
62
-
-All credentials (API key, instance name, server URL) are stored exclusively in your **browser's localStorage**
63
-
- Nothing is hardcoded — the repo contains zero credentials
86
+
-Credentials are stored in your **browser's localStorage** (local use) or in `config.json` on your server (hosted use)
87
+
- Nothing is hardcoded in the source — the repo contains zero credentials
64
88
- Credentials never leave your browser except in direct API calls to your own Evolution API server
0 commit comments