Skip to content

Commit 25fa2b8

Browse files
Merge branch 'main' into development
2 parents bdb25a8 + c5da460 commit 25fa2b8

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

USAGE-v3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Declaration path `.declaration.http.servers[].locations[].apigateway` defines th
6565
- `developer_portal.uri` - the trailing part of the Developer portal URI, this is appended to `.declaration.http.servers[].locations[].uri`. If omitted it defaults to `devportal.html`
6666
- `rate_limit` - optional, used to enforce rate limiting at the API Gateway level
6767

68-
A sample API Gateway declaration to publish the `https://petstore.swagger.io` REST API DevPortal, API Gateway and enforce:
68+
A sample API Gateway declaration to publish the `https://petstore.swagger.io` REST API and enforce:
6969

7070
- REST API endpoint URIs
7171
- HTTP Methods

contrib/postman/NGINX Declarative API.postman_collection.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"name": "NGINX Declarative API",
55
"description": "Declarative REST API and GitOps automation layer for NGINX Instance Manager",
66
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
7-
"_exporter_id": "1667416"
7+
"_exporter_id": "30973250"
88
},
99
"item": [
1010
{
@@ -1828,7 +1828,7 @@
18281828
},
18291829
{
18301830
"key": "nim_host",
1831-
"value": "https://nms.k8s.f5.ff.lan",
1831+
"value": "https://nms.ie.gslb.it",
18321832
"type": "string"
18331833
},
18341834
{

etc/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ port = 5000
2424

2525
# Redis backend for CI/CD automation
2626
[redis]
27-
host = "redis"
27+
host = "127.0.0.1"
2828
port = 6379
2929

3030
# Devportal helper

src/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ redis
1212
uuid
1313
schedule
1414
future
15-
pyyaml
15+
pyyaml

templates/v3/apigateway.tmpl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ location ~ {{ declaration.location.uri }}{{ path.path | regex_replace('{(.*?)}',
4747

4848
{% if declaration.location.apigateway.api_gateway.server_url -%}
4949
proxy_set_header Host {{ declaration.location.apigateway.api_gateway.server_url.split('://')[1].split('/')[0] }};
50+
5051
{% endif %}
5152

5253
proxy_pass {{ destination_server }}$uri;

0 commit comments

Comments
 (0)