Skip to content

Commit f5c51ab

Browse files
committed
fix nic cli arg for autoadjust
1 parent 2fece9f commit f5c51ab

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

content/nic/configuration/global-configuration/command-line-arguments.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ The default value is `false`.
658658

659659
---
660660

661-
### -with-directive-autoadjust
661+
### -enable-directive-autoadjust
662662

663663
Automatically adjusts NGINX buffer directives to prevent configuration errors.
664664

@@ -668,7 +668,7 @@ When enabled, the controller automatically adjusts `proxy_buffers`, `proxy_buffe
668668

669669
More explanation about this feature can be found in the guide [here](<ref "/nic/installation/configuration/proxy-buffers-configuration.md">).
670670

671-
<a name="cmdoption-with-directive-autoadjust"></a>
671+
<a name="cmdoption-enable-directive-autoadjust"></a>
672672

673673
---
674674

content/nic/configuration/proxy-buffers-configuration.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ weight: 850
55
nd-docs: DOCS-590
66
---
77

8-
This document explains how the `--with-directive-autoadjust` option prevents NGINX configuration errors by automatically adjusting HTTP proxy buffer directives.
8+
This document explains how the `--enable-directive-autoadjust` option prevents NGINX configuration errors by automatically adjusting HTTP proxy buffer directives.
99

1010
---
1111
## What it does
1212

13-
The `--with-directive-autoadjust` feature automatically fixes common proxy buffer configuration mistakes that would otherwise cause NGINX to fail with errors like:
13+
The `--enable-directive-autoadjust` feature automatically fixes common proxy buffer configuration mistakes that would otherwise cause NGINX to fail with errors like:
1414

1515
```text
1616
[emerg] "proxy_busy_buffers_size" must be less than the size of all "proxy_buffers" minus one buffer
@@ -34,7 +34,7 @@ The `--with-directive-autoadjust` feature automatically fixes common proxy buffe
3434
Add the flag to the controller container:
3535
```yaml
3636
args:
37-
- --with-directive-autoadjust=true
37+
- --enable-directive-autoadjust=true
3838
```
3939
{{% /tab %}}
4040
{{% tab name="Helm" %}}
@@ -62,7 +62,7 @@ data:
6262
6363
{{% tab name="Before (Error)" %}}
6464
65-
Before enabling `--with-directive-autoadjust`, NGINX fails to start with configuration validation errors.
65+
Before enabling `--enable-directive-autoadjust`, NGINX fails to start with configuration validation errors.
6666

6767
```shell
6868
stderr: "2025/08/26 14:29:49 [emerg] 196#196: "proxy_busy_buffers_size" must be less than the size of all "proxy_buffers" minus one buffer in /etc/nginx/nginx.conf:121"
@@ -72,7 +72,7 @@ stderr: "2025/08/26 14:29:49 [emerg] 196#196: "proxy_busy_buffers_size" must be
7272

7373
{{% tab name="After (Fixed)" %}}
7474

75-
With `--with-directive-autoadjust`, the configuration is automatically adjusted:
75+
With `--enable-directive-autoadjust`, the configuration is automatically adjusted:
7676

7777
```nginx
7878
proxy_buffers 8 1m;
@@ -111,7 +111,7 @@ stderr: "2025/08/26 14:34:46 [emerg] 47#47: "proxy_busy_buffers_size" must be eq
111111

112112
{{% tab name="After (Fixed)" %}}
113113

114-
With `--with-directive-autoadjust`, sensible defaults are applied:
114+
With `--enable-directive-autoadjust`, sensible defaults are applied:
115115

116116
```shell
117117
proxy_buffers 1024 1m;

0 commit comments

Comments
 (0)