-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy paths3_website.yml
29 lines (26 loc) · 958 Bytes
/
s3_website.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
s3_bucket: models-resources
s3_key_prefix: token-service
s3_endpoint: us-east-1
gzip: true
cloudfront_distribution_id: EWEHJ1W6PTVYI
cloudfront_invalidate_root: true
cloudfront_wildcard_invalidation: true
<% if ENV['TRAVIS_BRANCH'] == 'master' %>
# in this case we are going to deploy this branch to the top level of the domain
# so we need to ignore the version and branch folders
ignore_on_server: ^token-service/(version/|branch/)
<% else %>
# in this case we are going to deploy this code to a subfolder of either the branch
# or version folder. So ignore everything except this folder.
# S3_DEPLOY_DIR is set by s3_deploy.sh
ignore_on_server: ^(?!token-service/<%= Regexp.escape(ENV['S3_DEPLOY_DIR']) %>/)
<% end %>
max_age:
"token-service/*": 600 # 10 minutes
"token-service/version/*": 31536000 # 1 year
"token-service/branch/*": 0
cloudfront_distribution_config:
aliases:
quantity: 1
items:
- token-service.concord.org