You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-32Lines changed: 17 additions & 32 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,18 @@
1
1
# NGINX-Declarative-API
2
2
3
-
This tool provides a set of declarative REST API for NGINX Instance Manager.
3
+
This project provides a set of declarative REST API for [NGINX Instance Manager](https://docs.nginx.com/nginx-management-suite/nim/).
4
4
5
5
It can be used to manage NGINX Plus configuration lifecycle and to create NGINX Plus configurations using JSON service definitions.
6
6
7
-
GitOps integration is supported when used with NGINX Instance Manager: source of truth is checked for updates (NGINX App Protect policies, TLS certificates, keys and chains/bundles) and NGINX configurations are automatically kept in sync.
7
+
GitOps integration is supported when used with NGINX Instance Manager: source of truth is checked for updates (NGINX App Protect policies, TLS certificates, keys and chains/bundles, Swagger/OpenAPI definitions) and NGINX configurations are automatically kept in sync.
8
8
9
9
Use cases include:
10
10
11
11
- Rapid configuration generation and templating
12
12
- CI/CD integration with NGINX Instance Manager (instance groups and staged configs)
13
13
- NGINX App Protect DevSecOps integration
14
14
- API Gateway deployments with automated Swagger / OpenAPI schemas import
15
+
- API Developer portals zero-touch deployment
15
16
- GitOps integration with source of truth support for
16
17
- NGINX App Protect WAF policies
17
18
- TLS certificates, keys and chains/bundles
@@ -22,7 +23,7 @@ Use cases include:
22
23
23
24
## Requirements
24
25
25
-
- NGINX Instance Manager 2.10+
26
+
- NGINX Instance Manager 2.14+
26
27
- NGINX Plus R30 or newer
27
28
28
29
## Architecture
@@ -100,42 +101,26 @@ Usage details and JSON schema are available here:
100
101
101
102
A sample Postman collection and usage instructions can be found [here](/contrib/postman)
102
103
103
-
### Using docker-compose
104
+
##How to run
104
105
105
-
This is the recommended method to run NGINX Declarative API on a Linux virtual machine. Refer to [installation instructions](https://github.com/fabriziofiorucci/NGINX-Declarative-API/tree/main/contrib/docker-compose)
106
+
Docker-compose is the recommended method to run NGINX Declarative API on a Linux virtual machine. Full details are available [here](https://github.com/fabriziofiorucci/NGINX-Declarative-API/tree/main/contrib/docker-compose)
106
107
107
-
### As a Python application
108
+
##Building Docker images
108
109
109
-
This repository requires Python 3.10+
110
-
A running instance of [redis](https://redis.io/) is required: redis host and port can be configured in the `config.toml` file.
$ docker run --name nginx-declarative-api -d -p 5000:5000 nginx-declarative-api
130
-
```
131
-
132
-
Pre-built docker images are available on Docker Hub at https://hub.docker.com/repository/docker/fiorucci/nginx-declarative-api/general and can be run using:
docker run --name devportal -d -p 5001:5000 fiorucci/nginx-declarative-api-devportal
137
121
138
-
Pre-built images are configured to access the redis instance on host:port`127.0.0.1:6379`. This can be changed by mounting a custom `config.toml` file on the `nginx-declarative-api` container.
122
+
Pre-built docker images are available on Docker Hub at https://hub.docker.com/repository/docker/fiorucci/nginx-declarative-api/general
123
+
Configuration can be customized mounting `config.toml` as a volume `nginx-declarative-api` docker image as a volume to customize
0 commit comments