# Discussion Middleware

In Discussion forum middleware we have add the below configuration in `environmentHelper.js` file.

```
let localEnvVariables = {
    NODEBB_SERVICE_URL: env.nodebb_service_url || 'http://localhost:4567', 
    Authorization:  env.authorization_token || 'd8402b15-1d5f-4d84-9fae-595ef805f287', // Your local nodebb Master token
    nodebb_api_slug: env.nodebb_api_slug || '/api'
}
```

**NODEBB\_*****SERVICE\_*****URL** : This is your nodebb url by default local nodebb will run on port **4567.** and the url is[ ](http://localhost:4567)<http://localhost:4567>.

**Authorization:** This in nodebb authorization token (Write-api master token) and we have to send this token for all node apis.

**nodebb\_api\_slug:** All nodebb api should be prepend with `/api`


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://lern.sunbird.org/use/developer-guide/discussion-forum/developer-installation/installation-guide/discussion-middleware.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
