# SRT

The settings for the built-in SRT server. Check out our [SRT guide](/core/guides/srt.md) for more information.

## Configuration

{% tabs %}
{% tab title="JSON" %}

```json
{
   "srt": {
      "enable": false,
      "address": ":6000",
      "passphrase": "",
      "token": "",
      "log": {
         "enable": false,
         "topics": []
      }
   }
}
```

{% endtab %}

{% tab title="ENV" %}

```
CORE_SRT_ENABLE=false
CORE_SRT_ADDRESS=":6000"
CORE_SRT_PASSPHRASE=
CORE_SRT_TOKEN=
CORE_SRT_LOG_ENABLE=false
CORE_SRT_LOG_TOPIC=
```

{% endtab %}
{% endtabs %}

### enable (bool)

Set this value to `true` in order to enable the built-in SRT server.

By default the SRT server is disabled.

### address (string)

If the SRT server is enabled, it will listen on this address. The default address is `:6000`.

{% hint style="info" %}
The default `:6000` will listen on all interfaces on port 6000. To use a specific interface, write additionally it's IP, e.g. `127.0.0.1:6000` to only listen on the loopback interface.
{% endhint %}

### passphrase (string)

Define a passphrase in order to enable SRT encryption. If the passphrase is set it is required and applies to all connections.

By default the passphrase is not set (i.e. an empty string).

### token (string)

The token is an arbitrary string that needs to be comunicated in the streamid. Only with a valid token it is possible to publish or request streams. If the token is not set, anybody could publish and request streams.

By default the token is not set (i.e. an empty string).

### log.enable (bool)

Set this value to true in order to enable logging for the SRT server. This will log events on the SRT protocol level. You have to provide the topics you are interested in, otherwise nothing will be logged.

By default the logging is disabled.

### log.topic (array)

Logging topics allow you to define what type of messages will be logged. This is practical if you want to debug a SRT connection. An empty list of topics means that no topics will be logged.

Find a list of known logging topics on the [SRT server project page](https://github.com/datarhei/gosrt#logging).

By default no topics are logged (i.e. an empty array).


---

# 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.datarhei.com/core/configuration/srt.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.
