Add token secrete and set site's api domain

This commit is contained in:
2021-09-22 09:31:54 -05:00
parent ae37645212
commit bf1fc87a5b
2 changed files with 2 additions and 2 deletions

View File

@@ -15,4 +15,4 @@ inputs:
# AWS DynamoDB Table Index name. Needed for the code to access it. # AWS DynamoDB Table Index name. Needed for the code to access it.
dbIndex1: ${output:database.indexes.gsi1.name} dbIndex1: ${output:database.indexes.gsi1.name}
# A secret token to sign the JWT tokens with. # A secret token to sign the JWT tokens with.
tokenSecret: secret_1234 # Change to secret via environment variable: ${env:tokenSecret} tokenSecret: ${env:tokenSecret} # Change to secret via environment variable: ${env:tokenSecret}

View File

@@ -13,6 +13,6 @@ config.domains = {}
* This will enable your front-end to communicate with your back-end. * This will enable your front-end to communicate with your back-end.
* (e.g. 'https://api.mydomain.com' or 'https://091jafsl10.execute-api.us-east-1.amazonaws.com') * (e.g. 'https://api.mydomain.com' or 'https://091jafsl10.execute-api.us-east-1.amazonaws.com')
*/ */
config.domains.api = null config.domains.api = 'https://1t8da6s66e.execute-api.us-east-1.amazonaws.com'
export default config export default config