Skip to content

Commit ea609a2

Browse files
authored
Merge branch 'main' into main
2 parents deaaa6f + b1acd1a commit ea609a2

File tree

4 files changed

+30
-13
lines changed

4 files changed

+30
-13
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
Create NGINX App Protect WAF v5 repository file, named `/etc/yum.repos.d/app-protect-x-plus.repo` with the following contents:
2+
3+
```none
4+
[app-protect-x-plus]
5+
name=nginx-app-protect repo
6+
baseurl=https://pkgs.nginx.com/app-protect-x-plus/centos/9/$basearch/
7+
sslclientcert=/etc/ssl/nginx/nginx-repo.crt
8+
sslclientkey=/etc/ssl/nginx/nginx-repo.key
9+
gpgcheck=0
10+
enabled=1
11+
```
12+
13+
Install the NGINX App Protect WAF v5 package:
14+
15+
```shell
16+
sudo dnf install app-protect-module-plus
17+
```

content/nap-waf/v5/admin-guide/install.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Download the NGINX Plus repository file [nginx-plus-8.repo](https://cs.nginx.com
173173
sudo wget -P /etc/yum.repos.d https://cs.nginx.com/static/files/nginx-plus-8.repo
174174
```
175175

176-
{{< include "nap-waf/config/v5/host-based-nginx-instructions/nginx-plus-centos.md" >}}
176+
{{< include "nap-waf/config/v5/host-based-nginx-instructions/nginx-plus-centos-8.md" >}}
177177

178178

179179
{{%/tab%}}
@@ -186,7 +186,7 @@ Download the NGINX Plus repository file [plus-9.repo](https://cs.nginx.com/stati
186186
sudo wget -P /etc/yum.repos.d https://cs.nginx.com/static/files/plus-9.repo
187187
```
188188

189-
{{< include "nap-waf/config/v5/host-based-nginx-instructions/nginx-plus-centos.md" >}}
189+
{{< include "nap-waf/config/v5/host-based-nginx-instructions/nginx-plus-centos-9.md" >}}
190190

191191
{{%/tab%}}
192192

@@ -728,7 +728,7 @@ Then you can move onto the next step, depending on your chosen operating system.
728728
{{%/tab%}}
729729
{{%tab name="Oracle Linux 8.1+"%}}
730730

731-
{{< include "nap-waf/config/v5/host-based-nginx-instructions/nginx-plus-centos.md" >}}
731+
{{< include "nap-waf/config/v5/host-based-nginx-instructions/nginx-plus-centos-8.md" >}}
732732

733733
3. Download all NGINX Plus packages, including all dependencies: We used repotrack for example:
734734

@@ -747,7 +747,7 @@ Then you can move onto the next step, depending on your chosen operating system.
747747
{{%/tab%}}
748748
{{%tab name="RHEL 8.1+"%}}
749749

750-
{{< include "nap-waf/config/v5/host-based-nginx-instructions/nginx-plus-centos.md" >}}
750+
{{< include "nap-waf/config/v5/host-based-nginx-instructions/nginx-plus-centos-8.md" >}}
751751

752752
3. Download all NGINX Plus packages, including all dependencies: We used repotrack for example:
753753

@@ -766,7 +766,7 @@ Then you can move onto the next step, depending on your chosen operating system.
766766
{{%/tab%}}
767767
{{%tab name="RHEL 9 / Rocky Linux 9"%}}
768768

769-
{{< include "nap-waf/config/v5/host-based-nginx-instructions/nginx-plus-centos.md" >}}
769+
{{< include "nap-waf/config/v5/host-based-nginx-instructions/nginx-plus-centos-9.md" >}}
770770

771771
3. Download all NGINX Plus packages, including all dependencies: We used repotrack for example:
772772

content/nginx-one/connect-instances/connect-using-forward-proxy.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ Ensure you have the following:
2121

2222
1. Open a secure connection to your instance using SSH and log in.
2323
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:
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

3434
1. 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,
108108
1. Open a secure connection to your instance using SSH and log in.
109109
1. 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

117117
To 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

Comments
 (0)