@toptal/davinci-ci 7.1.1-alpha-dependabot-npm-and-yarn-jest-junit-16.0.0-59ea6b92.10 → 7.2.1-alpha-fx-5090-purge-cloudflare-cache-on-staff-portal-release-6dcc8dc9.0
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 7.2.0
|
4
|
+
|
5
|
+
### Minor Changes
|
6
|
+
|
7
|
+
- [#2361](https://github.com/toptal/davinci/pull/2361) [`44dabdcc`](https://github.com/toptal/davinci/commit/44dabdcc5d4fe91dec2e4a38895c353663cc0ea5) Thanks [@augustobmoura](https://github.com/augustobmoura)!
|
8
|
+
|
9
|
+
### davinci-ci
|
10
|
+
|
11
|
+
- change ngninx index.html caching to CDN only
|
12
|
+
|
3
13
|
## 7.1.0
|
4
14
|
|
5
15
|
### Minor Changes
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@toptal/davinci-ci",
|
3
|
-
"version": "7.
|
3
|
+
"version": "7.2.1-alpha-fx-5090-purge-cloudflare-cache-on-staff-portal-release-6dcc8dc9.0+6dcc8dc9",
|
4
4
|
"keywords": [
|
5
5
|
"ci",
|
6
6
|
"docker",
|
@@ -30,7 +30,7 @@
|
|
30
30
|
"dependencies": {
|
31
31
|
"@commitlint/cli": "^17.6.7",
|
32
32
|
"@commitlint/config-conventional": "^17.1.0",
|
33
|
-
"@toptal/davinci-cli-shared": "2.3.10-alpha-
|
33
|
+
"@toptal/davinci-cli-shared": "2.3.10-alpha-fx-5090-purge-cloudflare-cache-on-staff-portal-release-6dcc8dc9.128+6dcc8dc9",
|
34
34
|
"chalk": "^4.1.2",
|
35
35
|
"danger": "^11.2.2",
|
36
36
|
"markdown-table": "^2.0.0"
|
@@ -41,5 +41,5 @@
|
|
41
41
|
"publishConfig": {
|
42
42
|
"access": "public"
|
43
43
|
},
|
44
|
-
"gitHead": "
|
44
|
+
"gitHead": "6dcc8dc99d340bf79b17a7c5a250e291c77474cf"
|
45
45
|
}
|
@@ -25,7 +25,10 @@ RUN echo $VERSION > /usr/share/nginx/html/REVISION.txt
|
|
25
25
|
# Copy configuration file for Nginx and replace the default one.
|
26
26
|
ARG NGINX_CONFIG
|
27
27
|
RUN [ -z "$NGINX_CONFIG" ] && echo "NGINX_CONFIG is required" && exit 1 || true
|
28
|
-
COPY $NGINX_CONFIG /etc/nginx/conf.d/default.conf
|
28
|
+
COPY $NGINX_CONFIG /etc/nginx/conf.d/default.conf.templ
|
29
|
+
|
30
|
+
ARG HTML_CDN_CACHE_TAG="davinci-app"
|
31
|
+
ENV HTML_CDN_CACHE_TAG=${HTML_CDN_CACHE_TAG}
|
29
32
|
|
30
33
|
# Entry point to provide Run Time Environment Variables for the App.
|
31
34
|
ENTRYPOINT ["/usr/local/bin/env-runtime.entrypoint.sh"]
|
@@ -13,8 +13,9 @@ server {
|
|
13
13
|
}
|
14
14
|
|
15
15
|
location / {
|
16
|
-
# by default we are adding cache of 1 hour
|
17
|
-
add_header Cache-Control "public, max-age=3600";
|
16
|
+
# by default we are adding cache of 1 hour fo CDN only
|
17
|
+
add_header CDN-Cache-Control "public, max-age=3600";
|
18
|
+
add_header Cache-Tag "davinci,spa,index-doc,${HTML_CDN_CACHE_TAG}";
|
18
19
|
try_files $uri /index.html;
|
19
20
|
}
|
20
21
|
}
|