diff --git a/content/nginx-one/connect-instances/connect-using-forward-proxy.md b/content/nginx-one/connect-instances/connect-using-forward-proxy.md index 3e83e38d4..b313ae55c 100644 --- a/content/nginx-one/connect-instances/connect-using-forward-proxy.md +++ b/content/nginx-one/connect-instances/connect-using-forward-proxy.md @@ -21,14 +21,14 @@ Ensure you have the following: 1. Open a secure connection to your instance using SSH and log in. 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. -1. Add or modify the `proxy` section to include the proxy URL and timeout settings: +1. Add or modify the `proxy` section to include the proxy URL, port number, and timeout settings: ```conf server: host: agent.connect.nginx.com port: 443 proxy: - url: "http://proxy.example.com:3128" + url: "http://proxy.example.com:" ``` 1. Restart NGINX Agent to apply the changes: @@ -50,7 +50,7 @@ To configure NGINX Agent in a containerized environment: --env=NGINX_AGENT_COMMAND_SERVER_HOST=agent.connect.nginx.com \ --env=NGINX_AGENT_COMMAND_AUTH_TOKEN="" \ --env=NGINX_AGENT_COMMAND_TLS_SKIP_VERIFY=false \ - --env=NGINX_AGENT_COMMAND_SERVER_PROXY_URL=http://myproxy.example.com:3128 \ + --env=NGINX_AGENT_COMMAND_SERVER_PROXY_URL=http://myproxy.example.com: \ --restart=always \ --runtime=runc \ -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 ```conf proxy: - url: "http://proxy.example.com:3128" + url: "http://proxy.example.com:" auth_method: "basic" username: "user" password: "pass" @@ -92,7 +92,7 @@ To set proxy authentication in a containerized environment: --env=NGINX_AGENT_COMMAND_SERVER_HOST=agent.connect.nginx.com \ --env=NGINX_AGENT_COMMAND_AUTH_TOKEN="" \ --env=NGINX_AGENT_COMMAND_TLS_SKIP_VERIFY=false \ - --env NGINX_AGENT_COMMAND_SERVER_PROXY_URL=http://proxy.example.com:3128 + --env NGINX_AGENT_COMMAND_SERVER_PROXY_URL=http://proxy.example.com: --env NGINX_AGENT_COMMAND_SERVER_PROXY_AUTH_METHOD=basic --env NGINX_AGENT_COMMAND_SERVER_PROXY_USERNAME="user" --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, 1. Open a secure connection to your instance using SSH and log in. 1. Run the following `curl` command to test the connection: ```sh - curl -x http://proxy.example.com:3128 -U your_user:your_password https://agent.connect.nginx.com/api/v1/agents + curl -x http://proxy.example.com: -U your_user:your_password https://agent.connect.nginx.com/api/v1/agents ``` - - Replace `proxy.example.com:3128` with your proxy address and port. + - Replace `proxy.example.com:` with your proxy address and port number. - Replace `your_user` and `your_password` with the credentials you set up for proxy in the previous steps. To test the configuration from a containerized environment, run the following command from within the container: ```sh - curl -x http://host.docker.internal:3128 -U your_user:your_password https://agent.connect.nginx.com/api/v1/agents + curl -x http://host.docker.internal: -U your_user:your_password https://agent.connect.nginx.com/api/v1/agents ``` - Replace `your_user` and `your_password` with the credentials you set up for proxy in the previous steps.