You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/nginx-one/connect-instances/set-up-nginx-proxy-for-nginx-one.md
+34-12Lines changed: 34 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -69,18 +69,40 @@ To set up your other NGINX instances to use the proxy instance to connect to NGI
69
69
2. Open the NGINX Agent configuration file (**/etc/nginx-agent/nginx-agent.conf**) with a text editor.
70
70
3. Add the following configuration. Replace `YOUR_DATA_PLANE_KEY_HERE` with your actual data plane key and `YOUR_PROXY_IP_ADDRESS_HERE` with the IP address of the NGINX proxy instance.
71
71
72
-
```yaml
73
-
command:
74
-
server:
75
-
# Replace YOUR_PROXY_IP_ADDRESS_HERE with the IP address of the NGINX proxy instance.
76
-
host: YOUR_PROXY_IP_ADDRESS_HERE
77
-
port: 443
78
-
auth:
79
-
# Replace YOUR_DATA_PLANE_KEY_HERE with your NGINX One Console data plane key.
80
-
token: "YOUR_DATA_PLANE_KEY_HERE"
81
-
tls:
82
-
skip_verify: False
83
-
```
72
+
{{< tabs name="Configure NGINX Agent to use the proxy" >}}
73
+
74
+
{{%tab name="NGINX Agent 3.x"%}}
75
+
76
+
```yaml
77
+
command:
78
+
server:
79
+
# Replace YOUR_PROXY_IP_ADDRESS_HERE with the IP address of the NGINX proxy instance.
80
+
host: YOUR_PROXY_IP_ADDRESS_HERE
81
+
port: 5000
82
+
auth:
83
+
# Replace YOUR_DATA_PLANE_KEY_HERE with your NGINX One Console data plane key.
84
+
token: "YOUR_DATA_PLANE_KEY_HERE"
85
+
tls:
86
+
skip_verify: False
87
+
server_name: "agent.connect.nginx.com"
88
+
```
89
+
90
+
{{%/tab%}}
91
+
{{%tab name="NGINX Agent 2.x"%}}
92
+
```yaml
93
+
command:
94
+
server:
95
+
# Replace YOUR_PROXY_IP_ADDRESS_HERE with the IP address of the NGINX proxy instance.
96
+
host: YOUR_PROXY_IP_ADDRESS_HERE
97
+
port: 443
98
+
auth:
99
+
# Replace YOUR_DATA_PLANE_KEY_HERE with your NGINX One Console data plane key.
0 commit comments