forked from aliyun/ros-templates
-
Notifications
You must be signed in to change notification settings - Fork 1
/
domain.yml
56 lines (56 loc) · 1.57 KB
/
domain.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
ROSTemplateFormatVersion: '2015-09-01'
Description: CDN Domain/DomainConfig resource example
Parameters:
CdnType:
Type: String
Description: 'The business type. Valid values: web, download, video, livestream,
and httpsdelivery. web: acceleration of images and small files download. download:
acceleration of large file downloads. video: live streaming acceleration. httpsdelivery:
SSL acceleration for HTTPS.'
Default: web
AllowedValues:
- video
- download
- web
- liveStream
DomainName:
Type: String
Description: The CDN domain name. Wildcard domain names that start with periods
(.) are supported. For example, .a.com.
Sources:
Type: String
Description: The list of origin URLs.
Default: '[{"content":"1.1.1.1","type":"ipaddr","priority":"20","port":80,"weight":"15"}]'
Functions:
Type: Json
Description: function list
Default:
- functionArgs:
- argName: domain_name
argValue: example.com
functionName: set_req_host_header
Resources:
Domain:
Type: ALIYUN::CDN::Domain
Properties:
CdnType:
Ref: CdnType
DomainName:
Ref: DomainName
Sources:
Ref: Sources
DomainConfig:
Type: ALIYUN::CDN::DomainConfig
Properties:
FunctionList:
Ref: Functions
DomainNames:
Ref: Domain
Outputs:
DomainName:
Description: The CDN domain name. Wildcard domain names that start with periods
(.) are supported. For example, .a.com.
Value:
Fn::GetAtt:
- Domain
- DomainName