-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
40 lines (40 loc) · 1.17 KB
/
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
39
40
app: github-node-canvas
stage: dev
component: scf
name: github-node-canvas-scf
inputs:
name: ${name}
region: ap-shanghai
type: web
image: # 镜像配置
# registryId: tcr-xxx # 容器镜像服务名称,企业版必须
imageType: personal # 镜像类型:personal - 个人,enterprise - 企业版,public - 镜像模板
imageUrl: ${env:IMAGE_URI}
environment:
variables:
NODE_ENV: production
memorySize: 256
timeout: 30
events:
- apigw:
parameters:
protocols:
- http
- https
environment: release
endpoints:
- path: /
method: ANY
function:
type: web
customDomains:
- domain: svg.icebreaker.top
certificateId: ${env:CERTIFICATE_ID}
isForcedHttps: true
isDefaultMapping: false
pathMappingSet:
- path: /
environment: release
protocols: # 绑定自定义域名的协议类型,默认与服务的前端协议一致。
- http # 支持http协议
- https # 支持https协议