Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cloudfront usage #467

Open
wants to merge 1 commit into
base: rocky-develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions group_vars/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1157,25 +1157,25 @@ magento_core_config_settings_default:
path: "web/secure/base_media_url"
value: "https://{{ aws_cloudfront_distribution_domain | default('') }}/"
default: "{{ aws_cloudfront_domain_aliases | default([]) | length > 0 }}"
enabled: "{{ aws_cloudfront_distribution_domain | default(false) is string }}"
enabled: "{{ aws_cloudfront_distribution_domain is string and aws_cloudfront_distribution_create | default(false) | bool }}"

- name: Set secure static url to cloudfront domain
path: "web/secure/base_static_url"
value: "https://{{ aws_cloudfront_distribution_domain | default('') }}/static/"
default: "{{ aws_cloudfront_domain_aliases | default([]) | length > 0 }}"
enabled: "{{ aws_cloudfront_distribution_domain | default(false) is string }}"
enabled: "{{ aws_cloudfront_distribution_domain is string and aws_cloudfront_distribution_create | default(false) | bool }}"

- name: Set unsecure media url to cloudfront domain
path: "web/secure/base_media_url"
value: "https://{{ aws_cloudfront_distribution_domain | default('') }}/"
default: "{{ aws_cloudfront_domain_aliases | default([]) | length > 0 }}"
enabled: "{{ aws_cloudfront_distribution_domain | default(false) is string }}"
enabled: "{{ aws_cloudfront_distribution_domain is string and aws_cloudfront_distribution_create | default(false) | bool }}"

- name: Set unsecure static url to cloudfront domain
path: "web/secure/base_static_url"
value: "https://{{ aws_cloudfront_distribution_domain | default('') }}/static/"
default: "{{ aws_cloudfront_domain_aliases | default([]) | length > 0 }}"
enabled: "{{ aws_cloudfront_distribution_domain | default(false) is string }}"
enabled: "{{ aws_cloudfront_distribution_domain is string and aws_cloudfront_distribution_create | default(false) | bool }}"


# Extra core config settings to be set at deploy,
Expand Down