Created
June 15, 2020 09:52
-
-
Save thiagoavadore/2d5255d5f2b1281a2a836099a1e8cb63 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Comment": "My Hugo Static Hosting on S3", | |
"Logging": { | |
"Bucket": "<LOGGING-BUCKET>.s3.amazonaws.com", | |
"Prefix": "cdn-cf/", | |
"Enabled": true, | |
"IncludeCookies": false | |
}, | |
"Origins": { | |
"Quantity": 1, | |
"Items": [ | |
{ | |
"Id":"<BUCKET-NAME>-origin", | |
"OriginPath": "", | |
"CustomOriginConfig": { | |
"OriginProtocolPolicy": "http-only", | |
"HTTPPort": 80, | |
"OriginSslProtocols": { | |
"Quantity": 3, | |
"Items": [ | |
"TLSv1", | |
"TLSv1.1", | |
"TLSv1.2" | |
] | |
}, | |
"HTTPSPort": 443 | |
}, | |
"DomainName": "<BUCKET-NAME>.s3-website-<REGION>.amazonaws.com" | |
} | |
] | |
}, | |
"DefaultRootObject": "index.html", | |
"PriceClass": "PriceClass_All", | |
"Enabled": true, | |
"CallerReference": "1592125711", | |
"DefaultCacheBehavior": { | |
"TargetOriginId": "<BUCKET-NAME>-origin", | |
"ViewerProtocolPolicy": "redirect-to-https", | |
"DefaultTTL": 1800, | |
"AllowedMethods": { | |
"Quantity": 2, | |
"Items": [ | |
"HEAD", | |
"GET" | |
], | |
"CachedMethods": { | |
"Quantity": 2, | |
"Items": [ | |
"HEAD", | |
"GET" | |
] | |
} | |
}, | |
"MinTTL": 0, | |
"Compress": true, | |
"ForwardedValues": { | |
"Headers": { | |
"Quantity": 0 | |
}, | |
"Cookies": { | |
"Forward": "none" | |
}, | |
"QueryString": false | |
}, | |
"TrustedSigners": { | |
"Enabled": false, | |
"Quantity": 0 | |
} | |
}, | |
"ViewerCertificate": { | |
"SSLSupportMethod": "sni-only", | |
"ACMCertificateArn": "<ACM-CERTIFICATE-ARN>", | |
"MinimumProtocolVersion": "TLSv1", | |
"Certificate": "<ACM-CERTIFICATE-ARN>", | |
"CertificateSource": "acm" | |
}, | |
"CustomErrorResponses": { | |
"Quantity": 2, | |
"Items": [ | |
{ | |
"ErrorCode": 403, | |
"ResponsePagePath": "/404.html", | |
"ResponseCode": "404", | |
"ErrorCachingMinTTL": 300 | |
}, | |
{ | |
"ErrorCode": 404, | |
"ResponsePagePath": "/404.html", | |
"ResponseCode": "404", | |
"ErrorCachingMinTTL": 300 | |
} | |
] | |
}, | |
"Aliases": { | |
"Quantity": 2, | |
"Items": [ | |
"<DOMAIN-NAME>", | |
"www.<DOMAIN-NAME>" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment