@@ -21,14 +21,14 @@ Ensure you have the following:
21
21
22
22
1 . Open a secure connection to your instance using SSH and log in.
23
23
1 . Open the NGINX Agent configuration file (/etc/nginx-agent/nginx-agent.conf) with a text editor. To edit this file you need superuser privileges.
24
- 1 . Add or modify the ` proxy ` section to include the proxy URL and timeout settings:
24
+ 1 . Add or modify the ` proxy ` section to include the proxy URL, port number, and timeout settings:
25
25
26
26
``` conf
27
27
server:
28
28
host: agent.connect.nginx.com
29
29
port: 443
30
30
proxy:
31
- url: "http://proxy.example.com:3128 "
31
+ url: "http://proxy.example.com:<port number> "
32
32
```
33
33
34
34
1 . Restart NGINX Agent to apply the changes:
@@ -50,7 +50,7 @@ To configure NGINX Agent in a containerized environment:
50
50
--env=NGINX_AGENT_COMMAND_SERVER_HOST=agent.connect.nginx.com \
51
51
--env=NGINX_AGENT_COMMAND_AUTH_TOKEN=" <your-data-plane-key-here>" \
52
52
--env=NGINX_AGENT_COMMAND_TLS_SKIP_VERIFY=false \
53
- --env=NGINX_AGENT_COMMAND_SERVER_PROXY_URL=http://myproxy.example.com:3128 \
53
+ --env=NGINX_AGENT_COMMAND_SERVER_PROXY_URL=http://myproxy.example.com:< port number > \
54
54
--restart=always \
55
55
--runtime=runc \
56
56
-d private-registry.nginx.com/nginx-plus/agentv3:latest
@@ -66,7 +66,7 @@ If your forward proxy requires authentication, you can specify the username and
66
66
67
67
` ` ` conf
68
68
proxy:
69
- url: " http://proxy.example.com:3128 "
69
+ url: " http://proxy.example.com:<port number> "
70
70
auth_method: " basic"
71
71
username: " user"
72
72
password: " pass"
@@ -92,7 +92,7 @@ To set proxy authentication in a containerized environment:
92
92
--env=NGINX_AGENT_COMMAND_SERVER_HOST=agent.connect.nginx.com \
93
93
--env=NGINX_AGENT_COMMAND_AUTH_TOKEN=" <your-data-plane-key-here>" \
94
94
--env=NGINX_AGENT_COMMAND_TLS_SKIP_VERIFY=false \
95
- --env NGINX_AGENT_COMMAND_SERVER_PROXY_URL=http://proxy.example.com:3128
95
+ --env NGINX_AGENT_COMMAND_SERVER_PROXY_URL=http://proxy.example.com:< port number >
96
96
--env NGINX_AGENT_COMMAND_SERVER_PROXY_AUTH_METHOD=basic
97
97
--env NGINX_AGENT_COMMAND_SERVER_PROXY_USERNAME=" user"
98
98
--env NGINX_AGENT_COMMAND_SERVER_PROXY_PASSWORD=" pass"
@@ -108,16 +108,16 @@ To test the connectivity between NGINX Agent, your proxy, and NGINX One Console,
108
108
1. Open a secure connection to your instance using SSH and log in.
109
109
1. Run the following ` curl` command to test the connection:
110
110
` ` ` sh
111
- curl -x http://proxy.example.com:3128 -U your_user:your_password https://agent.connect.nginx.com/api/v1/agents
111
+ curl -x http://proxy.example.com:< port number > -U your_user:your_password https://agent.connect.nginx.com/api/v1/agents
112
112
` ` `
113
113
114
- - Replace ` proxy.example.com:3128 ` with your proxy address and port.
114
+ - Replace ` proxy.example.com:< port number > ` with your proxy address and port number .
115
115
- Replace ` your_user` and ` your_password` with the credentials you set up for proxy in the previous steps.
116
116
117
117
To test the configuration from a containerized environment, run the following command from within the container:
118
118
119
119
` ` ` sh
120
- curl -x http://host.docker.internal:3128 -U your_user:your_password https://agent.connect.nginx.com/api/v1/agents
120
+ curl -x http://host.docker.internal:< port number > -U your_user:your_password https://agent.connect.nginx.com/api/v1/agents
121
121
` ` `
122
122
123
123
- Replace ` your_user` and ` your_password` with the credentials you set up for proxy in the previous steps.
0 commit comments