<!-- review: finished -->

<a id="stream-set"></a>

# Set

The module allows setting a value for a variable.

<a id="configuration-example-69"></a>

## Configuration Example

```nginx
server {
    listen 12345;
    set    $true 1;
}
```

<a id="directives-78"></a>

## Directives

<a id="index-0"></a>

<a id="s-set"></a>

### set

| [Syntax](https://en.angie.software//angie/docs/configuration/configfile.md#configfile)   | `set` $variable value;   |
|------------------------------------------------------------------------------------------|--------------------------|
| Default                                                                                  | —                        |
| [Context](https://en.angie.software//angie/docs/configuration/configfile.md#configfile)  | server                   |

Sets a value for the specified variable. The value can contain text, variables, and their combination.
