-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathserverless.yaml
48 lines (44 loc) · 1.48 KB
/
serverless.yaml
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
39
40
41
42
43
44
45
46
47
48
service: ${file(./.env/env.${self:provider.env}.json):NAME}
provider:
name: aws
runtime: nodejs10.x
stage: ${file(./.env/env.${self:provider.env}.json):NODE_ENV}
env: ${env:SLS_ENV, 'test'}
region: us-east-1
timeout: 30
environment:
NODE_ENV: ${file(./.env/env.${self:provider.env}.json):NODE_ENV}
SWAGGER: ${file(./.env/env.${self:provider.env}.json):SWAGGER}
MONGO: ${file(./.env/env.${self:provider.env}.json):MONGO}
REPLICA: ${file(./.env/env.${self:provider.env}.json):REPLICA}
UEAUTH: ${file(./.env/env.${self:provider.env}.json):UEAUTH}
PRODUCT_SLUG: ${file(./.env/env.${self:provider.env}.json):PRODUCT_SLUG}
S3_KEY: ${file(./.env/env.${self:provider.env}.json):S3_KEY}
S3_SECRET: ${file(./.env/env.${self:provider.env}.json):S3_SECRET}
S3_BUCKET: ${file(./.env/env.${self:provider.env}.json):S3_BUCKET}
PROTOCOL: ${file(./.env/env.${self:provider.env}.json):PROTOCOL, 'https'}
IMPLEMENTER: ${file(./.env/env.${self:provider.env}.json):IMPLEMENTER}
package:
exclude:
- src/**
- .idea/**
plugins:
- serverless-domain-manager
- serverless-apigw-binary
custom:
customDomain:
domainName: ${file(./.env/env.${self:provider.env}.json):SWAGGER}
basePath: ''
stage: ${self:provider.stage}
createRoute53Record: true
apigwBinary:
types:
- 'multipart/form-data'
- 'image/jpeg'
- 'image/png'
functions:
app:
handler: dist/slsapp.handler
events:
- http: ANY /
- http: 'ANY {proxy+}'