Skip to content

Commit fc3c98c

Browse files
committed
fix: README.md and settings.env
1 parent e769289 commit fc3c98c

File tree

2 files changed

+36
-39
lines changed

2 files changed

+36
-39
lines changed

README.md

Lines changed: 34 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -21,46 +21,43 @@ Refer to the [Getting Started Guide](docs/getting_started.md) for how to build a
2121

2222
## Directory Structure and File Descriptions
2323

24-
<div style="background-color: rgb(50, 50, 50);">
25-
2624
```
2725
nginx-lambda-gateway
28-
|
29-
|-- common
30-
| |-- etc
31-
| | |-- nginx default nginx-lambda-gateway configuration
32-
| | └─- ssl contains certificates and NGINX Plus license
33-
| |-- lambda-core
34-
| | |-- awscredentials.js common lib to read and write AWS credentials
35-
| | |-- awssig2.js common lib to build AWS signature v2
36-
| | |-- awssig4.js common lib to build AWS signature v4
37-
| | |-- lambdagateway.js common lib to integrate the Lambda from NGINX
38-
| | |-- lambda_ngx_apis.conf API endpoints config for nginx-lambda-gateway
39-
| | |-- lambda_ngx_http.conf common config under NGINX http directive
40-
| | |-- lambda_ngx_proxy.conf common config to be set before proxy_pass
41-
| |-- utils.js common lib to be reused by all NJS codebase
42-
|-- lambda-emulator proxy for Lambda Runtime API to locally test
43-
|
44-
|-- docker
45-
| |-- Dockerfile.oss for NGINX OSS to act as a Lambda gateway
46-
|-- Dockerfile.plus for NGINX Plus to act as a Lambda gateway
47-
|
48-
|-- docker-compose.yml Docker config to build and run nginx-lambda-gateway
49-
|-- settings.env Docker env file
50-
|
51-
|-- docs contains documentation about the project
52-
|
53-
|-- examples
54-
| |-- 01-all-lambda-function-arns NGINX proxy to all Lambda function ARNs
55-
| |-- 02-one-lambda-function-arn NGINX proxy to one Lambda function ARN
56-
| |-- 03-one-lambda-function-url NGINX proxy to one Lambda function URL
57-
|-- 04-lambda-function-arn-url NGINX proxy to both of Lambda function ARN and URL
58-
|
59-
|-- tests test launcher and unit/integration test codebase
60-
|
61-
-- Makefile automate to build/start/stop nginx-lambda-gateway
26+
27+
├── common
28+
├── etc
29+
├── nginx default nginx-lambda-gateway configuration
30+
└─ ssl contains certificates and NGINX Plus license
31+
├── lambda-core
32+
├── awscredentials.js common lib to read and write AWS credentials
33+
├── awssig2.js common lib to build AWS signature v2
34+
├── awssig4.js common lib to build AWS signature v4
35+
├── lambdagateway.js common lib to integrate the Lambda from NGINX
36+
├── lambda_ngx_apis.conf API endpoints config for nginx-lambda-gateway
37+
├── lambda_ngx_http.conf common config under NGINX http directive
38+
├── lambda_ngx_proxy.conf common config to be set before proxy_pass
39+
── utils.js common lib to be reused by all NJS codebase
40+
── lambda-emulator proxy for Lambda Runtime API to locally test
41+
42+
├── docker
43+
├── Dockerfile.oss for NGINX OSS to act as a Lambda gateway
44+
── Dockerfile.plus for NGINX Plus to act as a Lambda gateway
45+
46+
├── docker-compose.yml Docker config to build and run nginx-lambda-gateway
47+
├── settings.env Docker env file
48+
49+
├── docs contains documentation about the project
50+
51+
├── examples
52+
├── 01-all-lambda-function-arns NGINX proxy to all Lambda function ARNs
53+
├── 02-one-lambda-function-arn NGINX proxy to one Lambda function ARN
54+
├── 03-one-lambda-function-url NGINX proxy to one Lambda function URL
55+
── 04-lambda-function-arn-url NGINX proxy to both of Lambda function ARN and URL
56+
57+
├── tests test launcher and unit/integration test codebase
58+
59+
── Makefile automate to build/start/stop nginx-lambda-gateway
6260
```
63-
</div>
6461

6562
## Development
6663

settings.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
33
AWS_SESSION_TOKEN=${AWS_SESSION_TOKEN}
44
DEBUG=false
55
HEADER_PREFIXES_TO_STRIP=false
6-
LAMBDA_REGION=us-east-2
6+
LAMBDA_REGION=${AWS_REGION}
77
LAMBDA_SERVER_PROTO=https
8-
LAMBDA_SERVER=lambda.us-east-2.amazonaws.com
8+
LAMBDA_SERVER=lambda.${AWS_REGION}.amazonaws.com
99
LAMBDA_SERVER_PORT=443

0 commit comments

Comments
 (0)