docs(config): clarify self-hosted instanceUrl API endpoint formatting

- Clarify in README and config_example.json that self-hosted instances
  require the /api mount path (fixes #26)
- Add instanceUrl placeholder to docker/config_example.json
This commit is contained in:
NoLogicAlan committed 2026-11-23 01:42:03 +03:00
1 parent 6bca127365
commit b2af315240
3 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -187,7 +187,7 @@ Open `docker/config.json` and insert your bot token:
``` ```
> [!NOTE] > [!NOTE]
> Set `"instanceUrl": "https://chat.example.com"` if connecting Remix to a self-hosted Fluxer instance instead of the official platform. > Set `"instanceUrl": "https://chat.example.com/api"` if connecting Remix to a self-hosted Fluxer instance instead of the official platform (include `/api` if your instance mounts REST endpoints under `/api`).
### 3. Start the Stack ### 3. Start the Stack
```bash ```bash
+1 -1
View File
@@ -2,7 +2,7 @@
"Comment": "Fluxer music bot configuration. Requires Node.js >= 22.13.0. Run 'node --version' to verify.", "Comment": "Fluxer music bot configuration. Requires Node.js >= 22.13.0. Run 'node --version' to verify.",
"token": "your bot token", "token": "your bot token",
"instanceUrl": null, "instanceUrl": null,
"instanceUrl-Comment": "Optional base URL of a self-hosted Fluxer instance (e.g. 'https://chat.example.com'). Leave null or omit to connect to the official fluxer.com.", "instanceUrl-Comment": "Optional base API URL of a self-hosted Fluxer instance (e.g. 'https://chat.example.com/api'). Include '/api' if your instance serves REST endpoints under /api. Leave null or omit to connect to official fluxer.com.",
"fluxer.js": { "fluxer.js": {
"rest": { "rest": {
"Comment": "REST client options. 'timeout' is ms before a request to fluxer.com/api is aborted (default: 15000). Raise if you see DOMException AbortError in logs.", "Comment": "REST client options. 'timeout' is ms before a request to fluxer.com/api is aborted (default: 15000). Raise if you see DOMException AbortError in logs.",
+1
View File
@@ -1,5 +1,6 @@
{ {
"token": "YOUR_BOT_TOKEN_HERE", "token": "YOUR_BOT_TOKEN_HERE",
"instanceUrl": null,
"prefix": "%", "prefix": "%",
"embedColor": "0xe9196c", "embedColor": "0xe9196c",
"owners": [], "owners": [],