forked from serverless-cd/ui
-
Notifications
You must be signed in to change notification settings - Fork 1
/
s.yaml
55 lines (51 loc) · 1.24 KB
/
s.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
49
50
51
52
53
54
edition: 1.0.0
name: serverless-cd-ui
access: "default"
vars: # 全局变量
region: "cn-hangzhou"
service:
name: "serverless-ui"
description: 'serverless-cd ui website'
services:
framework:
component: fc
actions:
pre-deploy: # 在deploy之前运行
- run: cp nginx.conf ./code/nginx.conf # 要执行的系统命令,类似于一种钩子的形式
props:
region: ${vars.region}
service: ${vars.service}
function:
name: "nginx"
description: 'serverless-cd ui nginx'
codeUri: './code'
runtime: custom
timeout: 300
memorySize: 1536
caPort: 9000
instanceConcurrency: 8
customRuntimeConfig:
command:
- nginx
args:
- '-c'
- '/code/nginx.conf'
- '-g'
- 'daemon off;'
triggers:
- name: httpTrigger
type: http
config:
authType: anonymous
methods:
- GET
- POST
- PUT
- DELETE
- HEAD
- OPTIONS
customDomains:
- domainName: auto
protocol: HTTP
routeConfigs:
- path: /*