Skip to content

Commit 9f714b9

Browse files
committed
Merge branch 'ngf-release-2.0' into ngf-feature-cp-dp-split
2 parents 5c7a698 + 94f5f7d commit 9f714b9

File tree

63 files changed

+2521
-2025
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+2521
-2025
lines changed

archetypes/concept.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ weight: i00
66
# Creates a table of contents and sidebar, useful for large documents
77
toc: false
88
# Types have a 1:1 relationship with Hugo archetypes, so you shouldn't need to change this
9-
type: concept
9+
nd-content-type: concept
1010
# Intended for internal catalogue and search, case sensitive:
1111
# Agent, N4Azure, NIC, NIM, NGF, NAP-DOS, NAP-WAF, NGINX One, NGINX+, Solutions, Unit
12-
product:
12+
nd-product:
1313
---
1414

1515
[//]: # "These are Markdown comments to guide you through document structure. Remove them as you go, as well as any unnecessary sections."
@@ -22,15 +22,11 @@ This guide provides an overview of <concept>, which is used <for/in> <action 1>,
2222

2323
It is an example of a <other concept>, and is closely related to <third concept>.
2424

25-
---
26-
2725
## Background
2826

2927
[//]: # "Explain what the concept is. If possible, relate it to another commonly known concept or software."
3028
[//]: # "This relates the new idea to the reader using their existing knowledge, helping their understanding of it and thus what its purpose is in context."
3129

32-
---
33-
3430
## Use cases
3531

3632
[//]: # "Name the individual use case sections after the actual use case itself, e.g 'Route traffic between applications'"
@@ -56,7 +52,6 @@ Starting from the <top/left> of the diagram, you can see that <thing> is connect
5652

5753
### Use case 2
5854

59-
---
6055

6156
## Conclusion
6257

@@ -65,8 +60,6 @@ Starting from the <top/left> of the diagram, you can see that <thing> is connect
6560
[//]: # "Since each use case provides links to additional documents, you may not need to link to more,"
6661
[//]: # "or even include the final 'See also' section."
6762

68-
---
69-
7063
## See also
7164

72-
[//]: # "Link to related documents, such as concepts, reference material or similar use cases."
65+
[//]: # "Link to related documents, such as reference material or task instructions."

archetypes/default.md

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ weight: i00
66
# Creates a table of contents and sidebar, useful for large documents
77
toc: false
88
# Types have a 1:1 relationship with Hugo archetypes, so you shouldn't need to change this
9-
type: how-to
9+
nd-content-type: how-to
1010
# Intended for internal catalogue and search, case sensitive:
1111
# Agent, N4Azure, NIC, NIM, NGF, NAP-DOS, NAP-WAF, NGINX One, NGINX+, Solutions, Unit
12-
product:
12+
nd-product:
1313
---
1414

1515
[//]: # "These are Markdown comments to guide you through document structure. Remove them as you go, as well as any unnecessary sections."
@@ -20,8 +20,6 @@ product:
2020

2121
This guide explains how to <X> with <Y>. In involves the use of <A>, <B> and <C>, demonstrating how <X> works with an example <Z>.
2222

23-
---
24-
2523
## Before you begin
2624

2725
[//]: # "List everything someone will need installed or configured before it's required. Link directly to installation guides where possible."
@@ -34,8 +32,6 @@ To complete this guide, you will need the following prerequisites:
3432

3533
[//]: # "Note the style of link for requirement two: keep the markdown extension. Links are resolved from the root of the documentation folder, often /site."
3634

37-
---
38-
3935
## Step 1
4036

4137
[//]: # "Explain the initial step: this is usually creating or configuring a resource. Sub-steps may not be necessary, depending on complexity."
@@ -51,38 +47,29 @@ To complete this guide, you will need the following prerequisites:
5147

5248
[//]: # "Sub-steps are ways of breaking steps into even smaller sections. Each step or sub-step should focus on one thing at a time: a user should be able to stop at the end of section and come back afterwards without leaving their software in a non-functional state."
5349

54-
---
55-
5650
### Sub-step 2
5751

5852
[//]: # "A useful final sub-step for a given section is some kind of verification or testing, so the reader is confident the steps have been successful."
5953

60-
---
61-
6254
## Step 2
6355

6456
[//]: # "Explain any additional steps required. If the how-to guide involves multiple components, each component can have its own step for delineation."
6557

6658
### Sub-step 1
6759

68-
---
6960

7061
### Sub-step 2
7162

72-
---
7363

7464
## Step 3
7565

7666
[//]: # "The final step of a how-to guide is usually a final test, and summarizes all of the previous steps taken to accomplish the purpose of the guide."
7767

7868
### Sub-step 1
7969

80-
---
8170

8271
### Sub-step 2
8372

84-
---
85-
86-
## See also
73+
## Next steps
8774

88-
[//]: # "Link to related documents, such as concepts, reference material or similar use cases."
75+
[//]: # "Link to the most common use cases after this specific instruction. For example. configuration usually follows installation."

archetypes/tutorial.md

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ weight: i00
66
# Creates a table of contents and sidebar, useful for large documents
77
toc: false
88
# Types have a 1:1 relationship with Hugo archetypes, so you shouldn't need to change this
9-
type: tutorial
9+
nd-content-type: tutorial
1010
# Intended for internal catalogue and search, case sensitive:
1111
# Agent, N4Azure, NIC, NIM, NGF, NAP-DOS, NAP-WAF, NGINX One, NGINX+, Solutions, Unit
12-
product:
12+
nd-product:
1313
---
1414

1515
[//]: # "These are Markdown comments to guide you through document structure. Remove them as you go, as well as any unnecessary sections."
@@ -29,8 +29,6 @@ By the end of the tutorial, you should have enough working knowledge of <thing>
2929

3030
<thing> is a common use for <product>: it enables the ability to use <feature 1>, <feature 2> and <feature 3>, which are important when configuring <product> for <use case>.
3131

32-
---
33-
3432
## Before you begin
3533

3634
[//]: # "List everything someone will need installed or configured before it's required. Link directly to installation guides where possible."
@@ -43,8 +41,6 @@ To complete this guide, you will need the following prerequisites:
4341

4442
[//]: # "Note the style of link for requirement two: keep the markdown extension. Links are resolved from the root of the documentation folder, often /site."
4543

46-
---
47-
4844
## Step 1
4945

5046
[//]: # "The text immediately following a heading in a tutorial should likely explain a concept to build a mental model of what the reader is about to do."
@@ -61,8 +57,6 @@ The first thing required for setting up <thing> is <step name>. This is the <ser
6157

6258
Starting from the <top/left> of the diagram, you can see that <thing> is connected to <other thing>: this relationship is established when configuring <parameter> as part of <file name>.
6359

64-
---
65-
6660
### Sub-step 1
6761

6862
[//]: # "The sub-steps of a tutorial should show the exact steps a reader should take to accomplish an action, and what to expect when doing so."
@@ -87,34 +81,25 @@ To verify the creation of <component>, you can also inspect information about it
8781
<the output of that command, possibly truncated and with changed IPs or domains>
8882
```
8983

90-
---
91-
9284
### Sub-step 2
9385

94-
---
95-
9686
## Step 2
9787

9888
[//]: # "Explain any additional steps required. If the tutorial involves multiple components, each component can have its own step for delineation."
9989

100-
---
101-
10290
### Sub-step 1
10391

104-
---
10592

10693
### Sub-step 2
10794

108-
---
10995

11096
## Conclusion
11197

11298
[//]: # "Summarize everything that the reader will have learned and accomplished by the end of this tutorial."
11399
[//]: # "It should fulfill the promise made by the introductory paragraph at the top of the document."
114100
[//]: # "You may wish to link to another tutorial as the next logical step, but that could also be part of the 'See also' section."
115101

116-
---
117102

118-
## See also
103+
## Next steps
119104

120-
[//]: # "Link to related documents, such as concepts, reference material or similar use cases."
105+
[//]: # "Link to related documents, such as concepts, reference material or specific use cases."
Lines changed: 42 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,74 +1,75 @@
1-
**Note**: To complete this step, make sure that `gpg` is installed on your system. You can install NGINX Agent using various command-line tools like `curl` or `wget`. If your NGINX Instance Manager host is not set up with valid TLS certificates, you can use the insecure flags provided by those tools. See the following examples:
1+
---
2+
docs: DOCS-1031
3+
files:
4+
- content/nim/nginx-app-protect/setup-waf-config-management.md
5+
---
6+
7+
{{<note>}}Make sure `gpg` is installed on your system before continuing. You can install NGINX Agent using command-line tools like `curl` or `wget`.{{</note>}}
8+
9+
If your NGINX Instance Manager host doesn't use valid TLS certificates, you can use the insecure flags to bypass verification. Here are some example commands:
210

311
{{<tabs name="install-agent-api">}}
412

513
{{%tab name="curl"%}}
614

7-
- Secure:
15+
- **Secure:**
816

917
```bash
10-
curl https://<NMS_FQDN>/install/nginx-agent | sudo sh
18+
curl https://<NIM_FQDN>/install/nginx-agent | sudo sh
1119
```
1220

13-
- Insecure:
21+
- **Insecure:**
1422

1523
```bash
16-
curl --insecure https://<NMS_FQDN>/install/nginx-agent | sudo sh
24+
curl --insecure https://<NIM_FQDN>/install/nginx-agent | sudo sh
1725
```
1826

19-
You can add your NGINX instance to an existing instance group or create one using `--instance-group` or `-g` flag when installing NGINX Agent.
20-
21-
The following example shows how to download and run the script with the optional `--instance-group` flag adding the NGINX instance to the instance group **my-instance-group**:
22-
23-
```bash
24-
curl https://<NMS_FQDN>/install/nginx-agent > install.sh; chmod u+x install.sh
25-
sudo ./install.sh --instance-group my-instance-group
26-
```
27+
To add the instance to a specific instance group during installation, use the `--instance-group` (or `-g`) flag:
2728

28-
By default, the install script attempts to use a secure connection when downloading packages. If, however, the script cannot create a secure connection, it uses an insecure connection instead and logs the following warning message:
29+
```shell
30+
curl https://<NIM_FQDN>/install/nginx-agent -o install.sh
31+
chmod u+x install.sh
32+
sudo ./install.sh --instance-group <instance group>
33+
```
2934

30-
``` text
31-
Warning: An insecure connection will be used during this nginx-agent installation
32-
```
35+
By default, the install script uses a secure connection to download packages. If it can’t establish one, it falls back to an insecure connection and logs this message:
3336

34-
To require a secure connection, you can set the optional flag `skip-verify` to `false`.
37+
```text
38+
Warning: An insecure connection will be used during this nginx-agent installation
39+
```
3540

36-
The following example shows how to download and run the script with an enforced secure connection:
41+
To enforce a secure connection, set the `--skip-verify` flag to false:
3742

38-
```bash
39-
curl https://<NMS_FQDN>/install/nginx-agent > install.sh chmod u+x install.sh; chmod u+x install.sh
40-
sudo sh ./install.sh --skip-verify false
41-
```
43+
```shell
44+
curl https://<NIM_FQDN>/install/nginx-agent -o install.sh
45+
chmod u+x install.sh
46+
sudo ./install.sh --skip-verify false
47+
```
4248

4349
{{%/tab%}}
4450

4551
{{%tab name="wget"%}}
4652

53+
- **Secure:**
4754

48-
- Secure:
49-
50-
```bash
51-
wget https://<NMS_FQDN>/install/nginx-agent -O - | sudo sh -s --skip-verify false
55+
```shell
56+
wget https://<NIM_FQDN>/install/nginx-agent -O - | sudo sh -s --skip-verify false
5257
```
5358

54-
- Insecure:
59+
- **Insecure:**
5560

56-
```bash
57-
wget --no-check-certificate https://<NMS_FQDN>/install/nginx-agent -O - | sudo sh
61+
```shell
62+
wget --no-check-certificate https://<NIM_FQDN>/install/nginx-agent -O - | sudo sh
5863
```
5964

60-
When you install the NGINX Agent, you can use the `--instance-group` or `-g` flag to add your NGINX instance to an existing instance group or to a new group that you specify.
61-
62-
The following example downloads and runs the NGINX Agent install script with the optional `--instance-group` flag, adding the NGINX instance to the instance group **my-instance-group**:
63-
64-
```bash
65-
wget https://gnms1.npi.f5net.com/install/nginx-agent -O install.sh ; chmod u+x install.sh
66-
sudo ./install.sh --instance-group my-instance-group
67-
```
65+
To add your instance to a group during installation, use the `--instance-group` (or `-g`) flag:
6866

67+
```shell
68+
wget https://<NIM_FQDN>/install/nginx-agent -O install.sh
69+
chmod u+x install.sh
70+
sudo ./install.sh --instance-group <instance group>
71+
```
6972

7073
{{%/tab%}}
71-
{{</tabs>}}
7274

73-
<!-- Do not remove. Keep this code at the bottom of the include -->
74-
<!-- DOCS-1031 -->
75+
{{</tabs>}}
Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
---
22
docs:
3+
file:
4+
- content/solutions/about-subscription-licenses.md
5+
- content/nap-waf/v5/admin-guide/install.md
36
---
47

58
1. Copy the license file to `/etc/nginx/license.jwt` on Linux or `/usr/local/etc/nginx/license.jwt` on FreeBSD for each NGINX Plus instance.
9+
2. Reload NGINX:
610

7-
1. **SELinux**: If you're running a Linux distribution with SELinux enabled, set the file security context type with the following command:
8-
9-
```bash
10-
chcon -t httpd_config_t /etc/nginx/license.jwt
11+
```shell
12+
systemctl reload nginx
1113
```
14+
15+
**If SELinux is enabled**:
16+
17+
Set the correct file context so NGINX can read the license:
18+
19+
```shell
20+
chcon -t httpd_config_t /etc/nginx/license.jwt
21+
```

content/includes/licensing-and-reporting/configure-nginx-plus-report-to-nim.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ docs:
1717
3. Reload NGINX:
1818
1919
``` bash
20-
nginx -s reload
20+
systemctl reload nginx
2121
```

content/includes/nap-waf/build-nginx-image-cmd.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ To build the image, execute the following command in the directory containing th
1010

1111

1212
```shell
13-
sudo docker build --no-cache \
13+
sudo docker build --no-cache --platform linux/amd64 \
1414
--secret id=nginx-crt,src=nginx-repo.crt \
1515
--secret id=nginx-key,src=nginx-repo.key \
1616
-t nginx-app-protect-5 .
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
docs: DOCS-000
3+
files:
4+
- content/nim/nginx-app-protect/setup-waf-config-management.md
5+
---
6+
7+
Restart the `nms-integrations` service:
8+
9+
```shell
10+
sudo systemctl restart nms-integrations
11+
```

0 commit comments

Comments
 (0)