# Config

This section details the configuration for the `node` section of the `config.yml` file.

A full configuration template can be found [here](https://github.com/fxnlabs/function-node/blob/main/fixtures/config/config.yaml.template).

```yaml
node:
  listenPort: 8080
  listenAddress: "127.0.0.1"
```

## Parameters

### `listenPort`

* **Description**: The port on which the Function node will listen for incoming connections.
* **Default**: `8080`
* **Type**: `integer`

### `listenAddress`

* **Description**: The address on which the Function node will listen for incoming connections. Using `127.0.0.1` (localhost) is recommended for security, as it restricts access to the local machine. To allow external access, you can set this to `0.0.0.0`. It is recommended that you expose the node through a reverse proxy, i.e NGINX or HAProxy
* **Default**: `"127.0.0.1"`
* **Type**: `string`


---

# 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://docs.function.network/function-network/using-function-network/run-a-node/configuration/config.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.
