Skip to content

Commit

Permalink
Merge pull request #266 from qld-gov-au/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
duttonw authored Jul 20, 2022
2 parents 7fff40a + a992f34 commit d26ee98
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 3 deletions.
66 changes: 66 additions & 0 deletions templates/cloudfront.cfn.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,72 @@ Resources:
LambdaFunctionAssociations:
- EventType: 'viewer-request'
LambdaFunctionARN: !Ref LambdaAtEdgeViewerRequestVersion
- PathPattern: /logout* #SSO
TargetOriginId: 'CmsOrigin'
AllowedMethods:
- GET
- HEAD
- OPTIONS
- PUT
- PATCH
- POST
- DELETE
Compress: true
DefaultTTL: 0
MaxTTL: 0
MinTTL: 0
ForwardedValues:
Cookies:
Forward: all
QueryString: true
Headers:
- "Accept"
- "Accept-Charset"
- "Accept-Datetime"
- "Accept-Encoding"
- "Accept-Language"
- "Authorization"
- "Origin"
- "Accept"
- "Host"
- "Referer"
ViewerProtocolPolicy: redirect-to-https
LambdaFunctionAssociations:
- EventType: 'viewer-request'
LambdaFunctionARN: !Ref LambdaAtEdgeViewerRequestVersion
- PathPattern: /oauth-account-manager* #SSO
TargetOriginId: 'CmsOrigin'
AllowedMethods:
- GET
- HEAD
- OPTIONS
- PUT
- PATCH
- POST
- DELETE
Compress: true
DefaultTTL: 0
MaxTTL: 0
MinTTL: 0
ForwardedValues:
Cookies:
Forward: all
QueryString: true
Headers:
- "Accept"
- "Accept-Charset"
- "Accept-Datetime"
- "Accept-Encoding"
- "Accept-Language"
- "Authorization"
- "Origin"
- "Accept"
- "Host"
- "Referer"
ViewerProtocolPolicy: redirect-to-https
LambdaFunctionAssociations:
- EventType: 'viewer-request'
LambdaFunctionARN: !Ref LambdaAtEdgeViewerRequestVersion
{% endif %}

- PathPattern: !Sub "/${AttachmentBucketName}/*" # S3 uploaded files
Expand Down
2 changes: 1 addition & 1 deletion vars/shared-CKANTest.var.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ extensions:
description: "CKAN Extension to keep uploaded files in S3"
type: "git"
url: "https://github.com/qld-gov-au/ckanext-s3filestore.git"
version: "0.7.7-qgov"
version: "0.7.7-qgov.2"

CKANExtSSMConfig: &CKANExtSSMConfig
name: "ckanext-ssm-config-{{ Environment }}"
Expand Down
2 changes: 1 addition & 1 deletion vars/shared-OpenData.var.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ extensions:
description: "CKAN Extension to keep uploaded files in S3"
type: "git"
url: "https://github.com/qld-gov-au/ckanext-s3filestore.git"
version: "0.7.7-qgov"
version: "0.7.7-qgov.2"

CKANExtSSMConfig: &CKANExtSSMConfig
name: "ckanext-ssm-config-{{ Environment }}"
Expand Down
2 changes: 1 addition & 1 deletion vars/shared-Publications.var.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ extensions:
description: "CKAN Extension to keep uploaded files in S3"
type: "git"
url: "https://github.com/qld-gov-au/ckanext-s3filestore.git"
version: "0.7.7-qgov"
version: "0.7.7-qgov.2"

CKANExtSSMConfig: &CKANExtSSMConfig
name: "ckanext-ssm-config-{{ Environment }}"
Expand Down

0 comments on commit d26ee98

Please sign in to comment.