Skip to content

Commit

Permalink
Merge pull request #149 from baichenxu3/master
Browse files Browse the repository at this point in the history
modify dcdn-speeds-up-data-storage-on-oss template.
  • Loading branch information
xiao201208 authored Nov 8, 2023
2 parents 249b368 + 7111076 commit d3b20fa
Showing 1 changed file with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ Resources:
Ref: RR
Value:
'Fn::GetAtt':
- DCDNDomain
- CDNDomain
- Cname
DomainName:
Ref: DomainName
Expand All @@ -95,22 +95,23 @@ Resources:
- SubDomainName
- Ref: DomainName
- 'Fn::Sub': '${SubDomainNamePrefix}.${DomainName}'
DCDNDomain:
Type: 'ALIYUN::DCDN::Domain'
CDNDomain:
Type: 'ALIYUN::CDN::Domain'
DependsOn: BucketDomain
Properties:
CdnType: download
DomainName:
'Fn::If':
- SubDomainName
- Ref: DomainName
- 'Fn::Sub': '${SubDomainNamePrefix}.${DomainName}'
Sources:
- Content:
'Fn::GetAtt':
- Bucket
- DomainName
Type: oss
Port: 80
Weight: '100'
Fn::Sub:
- '[{"content":"${content}", "type":"oss", "priority":"20", "port":80, "weight":"100"}]'
- content:
'Fn::GetAtt':
- Bucket
- DomainName
Bucket:
Type: 'ALIYUN::OSS::Bucket'
Properties:
Expand Down

0 comments on commit d3b20fa

Please sign in to comment.