From b2af315240235ac4cf8552d31dcb2143d9a87f7e Mon Sep 17 00:00:00 2001 From: NoLogicAlan Date: Mon, 23 Nov 2026 01:42:03 +0300 Subject: [PATCH] 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 --- README.md | 2 +- config_example.json | 2 +- docker/config_example.json | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9de1d50..bb8880d 100644 --- a/README.md +++ b/README.md @@ -187,7 +187,7 @@ Open `docker/config.json` and insert your bot token: ``` > [!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 ```bash diff --git a/config_example.json b/config_example.json index 1eac95e..d6afee4 100644 --- a/config_example.json +++ b/config_example.json @@ -2,7 +2,7 @@ "Comment": "Fluxer music bot configuration. Requires Node.js >= 22.13.0. Run 'node --version' to verify.", "token": "your bot token", "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": { "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.", diff --git a/docker/config_example.json b/docker/config_example.json index 7fbb92f..7c61e05 100644 --- a/docker/config_example.json +++ b/docker/config_example.json @@ -1,5 +1,6 @@ { "token": "YOUR_BOT_TOKEN_HERE", + "instanceUrl": null, "prefix": "%", "embedColor": "0xe9196c", "owners": [],