diff --git a/content/includes/nginx-one/conf/nginx-agent-conf.md b/content/includes/nginx-one/conf/nginx-agent-conf.md new file mode 100644 index 000000000..0fcbc57ea --- /dev/null +++ b/content/includes/nginx-one/conf/nginx-agent-conf.md @@ -0,0 +1,22 @@ +--- +docs: DOCS-000 +files: + - content/nginx-one/getting-started.md + - content/nginx-one/agent/containers/run-agent-container.md +--- + +```yaml +command: + server: + host: "" # Command server host + port: 443 # Command server port + auth: + token: "" # Authentication token for the command server + tls: + skip_verify: false +``` + +Replace the placeholder values: + +- ``: The URL of your NGINX One Console instance, typically https://INSERT_YOUR_TENANT_NAME.console.ves.volterra.io/ . +- ``: Your Data Plane key. diff --git a/content/nginx-one/agent/containers/run-agent-container.md b/content/nginx-one/agent/containers/run-agent-container.md index 27c1df8ed..fed9ba8d8 100644 --- a/content/nginx-one/agent/containers/run-agent-container.md +++ b/content/nginx-one/agent/containers/run-agent-container.md @@ -45,21 +45,8 @@ Ensure you are using the correct image version. Replace `latest` with the desire Create a configuration file named `nginx-agent.conf` in your current directory and populate the file with the following structure: -```yaml -command: - server: - host: "" # Command server host - port: 443 # Command server port - auth: - token: "" # Authentication token for the command server - tls: - skip_verify: false -``` - -Replace the placeholder values: -- ``: The URL of your NGINX One Console instance. -- ``: Your Data Plane access token. +{{< include "/nginx-one/conf/nginx-agent-conf.md" >}} ## Run the container diff --git a/content/nginx-one/getting-started.md b/content/nginx-one/getting-started.md index 78a0c8926..2422d79a0 100644 --- a/content/nginx-one/getting-started.md +++ b/content/nginx-one/getting-started.md @@ -93,9 +93,9 @@ To install NGINX Agent on an NGINX instance: - Replace `YOUR_DATA_PLANE_KEY` with your actual data plane key. - The `-y` option automatically confirms any prompts during installation. -The `install` script writes an `nginx-agent.conf` file to the `/etc/nginx-agent/` directory, with the [data plane key](#generate-data-plane-key) that you generated. You can find the key, host address, TLS status, and other information in the `nginx-agent.conf` file. +The `install` script writes an `nginx-agent.conf` file to the `/etc/nginx-agent/` directory, with the [data plane key](#generate-data-plane-key) that you generated. You can find this information in the `nginx-agent.conf` file: -If you followed the [Installation and upgrade](https://docs.nginx.com/nginx-agent/installation-upgrade/) guides for installing NGINX Agent, you may need to add this information manually to `nginx-agent.conf`. +{{< include "/nginx-one/conf/nginx-agent-conf.md" >}} @@ -138,7 +138,7 @@ The NGINX One Console dashboard relies on APIs for NGINX Plus and NGINX Open Sou {{< include "/use-cases/monitoring/enable-nginx-oss-stub-status.md" >}} ---- +--- ## View instance metrics with the NGINX One dashboard