-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix support for regional domains using TLS 1.0 (#348)
* Fix support for regional domains using TLS 1.0 * fix lint * add unit test * update changelog * check if existing domain is tls 1.0 instead of config * fix lint errors * update release date :
- Loading branch information
1 parent
36bd088
commit 88a558e
Showing
8 changed files
with
144 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "serverless-domain-manager", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"engines": { | ||
"node": ">=4.0" | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
"use strict"; | ||
|
||
module.exports.helloWorld = (event, context, callback) => { | ||
const response = { | ||
statusCode: 200, | ||
headers: { | ||
"Access-Control-Allow-Origin": "*", // Required for CORS support to work | ||
}, | ||
body: JSON.stringify({ | ||
message: "Go Serverless v1.0! Your function executed successfully!", | ||
input: event, | ||
}), | ||
}; | ||
|
||
callback(null, response); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Test regional domains with TLS 1.0 | ||
service: regional-tls-1-0-${opt:RANDOM_STRING} | ||
provider: | ||
name: aws | ||
runtime: nodejs12.x | ||
region: us-west-2 | ||
stage: dev | ||
endpointType: regional | ||
|
||
functions: | ||
helloWorld: | ||
handler: handler.helloWorld | ||
events: | ||
- http: | ||
path: hello-world | ||
method: get | ||
cors: true | ||
plugins: | ||
- serverless-domain-manager | ||
custom: | ||
customDomain: | ||
domainName: regional-tls-1-0-${opt:RANDOM_STRING}.${env:TEST_DOMAIN} | ||
securityPolicy: tls_1_0 | ||
endpointType: regional | ||
|
||
package: | ||
exclude: | ||
- node_modules/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters