@@ -21,14 +21,14 @@ Ensure you have the following:
2121
22221 . Open a secure connection to your instance using SSH and log in.
23231 . 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:
2525
2626 ``` conf
2727 server:
2828 host: agent.connect.nginx.com
2929 port: 443
3030 proxy:
31- url: "http://proxy.example.com:3128 "
31+ url: "http://proxy.example.com:<port number> "
3232 ```
3333
34341 . Restart NGINX Agent to apply the changes:
@@ -50,7 +50,7 @@ To configure NGINX Agent in a containerized environment:
5050 --env=NGINX_AGENT_COMMAND_SERVER_HOST=agent.connect.nginx.com \
5151 --env=NGINX_AGENT_COMMAND_AUTH_TOKEN=" <your-data-plane-key-here>" \
5252 --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 > \
5454 --restart=always \
5555 --runtime=runc \
5656 -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
6666
6767 ` ` ` conf
6868 proxy:
69- url: " http://proxy.example.com:3128 "
69+ url: " http://proxy.example.com:<port number> "
7070 auth_method: " basic"
7171 username: " user"
7272 password: " pass"
@@ -92,7 +92,7 @@ To set proxy authentication in a containerized environment:
9292 --env=NGINX_AGENT_COMMAND_SERVER_HOST=agent.connect.nginx.com \
9393 --env=NGINX_AGENT_COMMAND_AUTH_TOKEN=" <your-data-plane-key-here>" \
9494 --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 >
9696 --env NGINX_AGENT_COMMAND_SERVER_PROXY_AUTH_METHOD=basic
9797 --env NGINX_AGENT_COMMAND_SERVER_PROXY_USERNAME=" user"
9898 --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,
1081081. Open a secure connection to your instance using SSH and log in.
1091091. Run the following ` curl` command to test the connection:
110110 ` ` ` 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
112112 ` ` `
113113
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 .
115115 - Replace ` your_user` and ` your_password` with the credentials you set up for proxy in the previous steps.
116116
117117To test the configuration from a containerized environment, run the following command from within the container:
118118
119119 ` ` ` 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
121121 ` ` `
122122
123123 - Replace ` your_user` and ` your_password` with the credentials you set up for proxy in the previous steps.
0 commit comments