|
40 | 40 | | `HEADER_PREFIXES_TO_STRIP` | No | `true`, `false` | `false` | A list of HTTP header prefixes that exclude headers client responses. List should be specified in lower-case and a semicolon (;) should be used to as a deliminator between values. For example: `x-amz-;x-something-` |
|
41 | 41 |
|
42 | 42 | > Note:
|
43 |
| - > - Define the following environment variables in your machine if you want to use the above default values. |
| 43 | + > - Define the following environment variables in your machine when using the above default values. |
44 | 44 | > e.g.: `AWS_REGION`, `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_SESSION_TOKEN` in `~/.bash_profile`.
|
45 | 45 | > - `AWS_ACCESS_KEY_ID`, `AWS_SECRET_ACCESS_KEY`, `AWS_SESSION_TOKEN` are only used to configure the gateway when running as a Container or as a Systemd service.
|
46 | 46 |
|
|
51 | 51 | ```nginx
|
52 | 52 | map $request_uri $lambda_host {
|
53 | 53 | # Use default host ($lambdaFunctionARNHost) when using one region for
|
54 |
| - # multiple Lambda Function ARNs. |
| 54 | + # multiple Lambda Function ARNs per NGINX Lambda Gateway. |
55 | 55 | default $lambdaFunctionARNHost;
|
56 | 56 |
|
57 |
| - # Define $lambdaFunctionARNHost per endpoint when using multiple regions |
| 57 | + # Add default host per endpoint when using multiple regions for |
58 | 58 | # multiple Lambda Function ARNs per NGINX Lambda Gateway.
|
59 | 59 | # '/2015-03-31/functions/foo/invocations' $lambdaFunctionARNHost;
|
60 | 60 |
|
61 |
| - # Define the following host per endpoint when using AWS Lambda Function URL |
62 |
| - # '/bar' {url-id}.lambda-url.{region}.on.aws; |
| 61 | + # Add the following host with ediging {url_id} and {aws-region} per endpoint |
| 62 | + # when using AWS Lambda Function URL |
| 63 | + # '/bar' {url-id}.lambda-url.{aws-region}.on.aws; |
63 | 64 | }
|
64 | 65 |
|
65 | 66 | map $request_uri $lambda_url {
|
66 | 67 | # Use default Lambda server URL when using AWS Lambda Function ARN.
|
67 | 68 | default $lambdaProto://$lambda_host:$lambdaPort;
|
68 | 69 |
|
69 |
| - # Define Lambda server URL per endpoint when using AWS Lambda Function URL. |
| 70 | + # Add Lambda server URL per endpoint when using AWS Lambda Function URL. |
70 | 71 | # '/bar' $lambdaProto://$lambda_host/;
|
71 | 72 | }
|
72 | 73 |
|
|
80 | 81 | js_content lambdagateway.redirectToLambdaFunctionARN;
|
81 | 82 | }
|
82 | 83 |
|
83 |
| - # Define this config when using a proxy to one AWS Lambda Function ARN. |
84 |
| - # - arn:aws:lambda:{region}:{account-id}:function:foo |
| 84 | + # Add this config per endpoint when using a proxy to a Lambda Function ARN. |
| 85 | + # - arn:aws:lambda:{aws-region}:{account-id}:function:foo |
85 | 86 | # location /2015-03-31/functions/foo/invocations {
|
86 | 87 | # auth_request /aws/credentials/retrieval;
|
87 | 88 | # js_content lambdagateway.redirectToLambdaFunctionARN;
|
88 | 89 | # }
|
89 | 90 |
|
90 |
| - # Define this config when using a proxy to one AWS Lambda Function URL. |
91 |
| - # - https://{url-id}.lambda-url.{region}.on.aws/ |
| 91 | + # Add this config per endpoint when using a proxy to a Lambda Function URL. |
| 92 | + # - https://{url-id}.lambda-url.{aws-region}.on.aws/ |
92 | 93 | # location /bar {
|
93 | 94 | # auth_request /aws/credentials/retrieval;
|
94 | 95 | # js_content lambdagateway.redirectToLambdaFunctionURL;
|
|
0 commit comments