-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaerobatic.yml
108 lines (102 loc) · 4.08 KB
/
aerobatic.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
id: f593b673-75f2-4c7e-8a65-6e0d7a6e0f05
deploy:
ignore: []
directory: public
alerts:
default:
slack:
webhookUrl: $SLACK_WEBHOOK_ALERT
email:
to: [[email protected]]
plugins:
- name: http-headers
options:
security: true
'Content-Security-Policy': "default-src 'self'; img-src 'self' data: https://www.aerobatic.com https://www.google-analytics.com https://www.google.com https://stats.g.doubleclick.net https://aerobatic-media.s3.amazonaws.com; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.google-analytics.com https://cdnjs.cloudflare.com https://cdn.jsdelivr.net https://d3js.org; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com https://cdnjs.cloudflare.com https://cdn.jsdelivr.net; font-src 'self' data: https://fonts.gstatic.com https://cdnjs.cloudflare.com; connect-src 'self' https://*.algolianet.com https://*.algolia.net; form-action 'self'; base-uri 'self'; frame-ancestors 'self'"
- name: http-proxy
path: /slack
method: post
options:
url: $SLACK_WEBHOOK
- name: cors
path: /api/*
options:
origin:
- https://www.aerobatic.com
- http://localhost:1313
- name: http-proxy
path: /api/github/*
method: get
options:
url: https://api.github.com/*
# Cache on CDN for 1 hour
cacheMaxAge: 3600
headers:
# new Buffer('dvonlehman:{PERSONAL_TOKEN}').toString('base64')
Authorization: Basic $GITHUB_API_AUTH
- name: http-proxy
path: /api/github-raw/*
method: get
options:
url: https://raw.githubusercontent.com/*
cacheMaxAge: 86400
- name: http-proxy
path: /api/slack-invite
method: post
options:
url: https://aerobatic-public.slack.com/api/users.admin.invite
query:
token: $SLACK_OAUTH_TOKEN
- name: s3-proxy
path: /media
options:
bucket: aerobatic-media
prefix: website
region: us-west-2
overrideCacheControl: max-age=2592000
accessKeyId: $S3_ACCESS_KEY_ID
secretAccessKey: $S3_SECRET_ACCESS_KEY
- name: keyword-search
path: /search
method: get
options:
resultsTemplate: /search/index.html
mustacheTags: ['<%=', '%>']
- name: redirect
options:
/docs: /docs/getting-started/
/docs/environment-variables: '/docs/configuration/#environment-variables'
/docs/api-proxy: /docs/plugins/http-proxy/
/docs/performance: '/docs/overview/#performance'
/docs/ssl: /docs/custom-domains-ssl/
/docs/custom-domains: /docs/custom-domains-ssl/
/docs/automated-builds: /docs/static-generators/
/docs/http-proxy: /docs/plugins/http-proxy/
/docs/s3-proxy: /docs/plugins/s3-proxy/
/docs/cors: /docs/plugins/cors/
/docs/redirects: /docs/plugins/redirect/
/docs/http-basic-authentication: /docs/plugins/basic-auth/
/docs/custom-error-pages: /docs/plugins/custom-errors/
/docs/static-http-hosting: /docs/static-serving/
/docs/continuous-deployment: /docs/deployment/#continuous-deployment
/bitbucket-changes: /blog/announcing-aerobatic-transition/
/feed.xml: /index.xml
/themes/: /quickstarts/jekyll/
/themes/*: /quickstarts/*
/blog/hosting-swagger-api-documentation-wth-bitbucket: /blog/hosting-swagger-api-documentation
/blog/announcing-aerobatic-transition: /
/blog/how-to-host-your-static-web-site-with-hexo-js: /docs/deployment/#continuous-deployment
/blog/faster-website-deployment-with-bitbucket-and-s3: /docs/plugins/s3-proxy/
/blog/basic-auth-for-static-web-sites: /docs/plugins/password-protect/
/blog/automated-continuous-deployment-of-jekyll-sites: /docs/static-site-generators/#jekyll
/blog/easy-hugo-continuous-deployment: /docs/static-site-generators/#hugo
/blog/introducing-docker-pipeline: /docs/deployment/#continuous-deployment
/blog/optimized-docker-images-continuous-deployment: /docs/deployment/#continuous-deployment
/legal: /legal/tos/
/about: /
- name: health-check
path: /health
- name: custom-errors
options:
errors:
'404': 404.html