-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yml
38 lines (34 loc) · 945 Bytes
/
serverless.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
org: raravi
app: notes-server-lambda
service: notes-server-lambda
frameworkVersion: ^3.23.0
custom:
secrets: ${file(secrets.json)}
provider:
name: aws
runtime: nodejs16.x
region: eu-central-1
environment:
NODE_ENV: ${self:custom.secrets.NODE_ENV}
APP_DB: ${self:custom.secrets.APP_DB}
APP_SECRETORKEY: ${self:custom.secrets.APP_SECRETORKEY}
APP_EMAIL: ${self:custom.secrets.APP_EMAIL}
APP_PASSWORD: ${self:custom.secrets.APP_PASSWORD}
APP_RESETEMAIL: ${self:custom.secrets.APP_RESETEMAIL}
APP_RESETLINK: ${self:custom.secrets.APP_RESETLINK}
APP_VALIDATELINK: ${self:custom.secrets.APP_VALIDATELINK}
APP_CLIENTURL: ${self:custom.secrets.APP_CLIENTURL}
functions:
app:
handler: server.run
events:
- http:
path: /
method: ANY
cors: true
- http:
path: /{proxy+}
method: ANY
cors: true
plugins:
- serverless-offline