@nodeart/cloudflare-provisioning 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/template.js +1 -47
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nodeart/cloudflare-provisioning",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/template.js CHANGED
@@ -12,28 +12,6 @@ module.exports = {
12
12
  expression: '(cf.client.bot and not http.request.uri.path contains ".well-known")'
13
13
  }
14
14
  }
15
- ],
16
- bypassCMSApi: [
17
- {
18
- description: 'bypass cms api with proxy',
19
- action: 'bypass',
20
- products: ['uaBlock', 'bic', 'securityLevel'],
21
- filter: {
22
- enabled: true,
23
- expression: '(http.request.uri.path contains "/api/cms/pages" and http.user_agent eq "sitemap-generator-ss") or (http.request.uri.path eq "/api/info/locales" and http.user_agent eq "sitemap-generator-ss")'
24
- }
25
- }
26
- ],
27
- allowHotlinkFromKingtraf: [
28
- {
29
- description: 'allow hotlink from kingtraf',
30
- action: 'bypass',
31
- products: ['hot'],
32
- filter: {
33
- enabled: true,
34
- expression: '(http.referer contains "kingtraf.com")'
35
- }
36
- }
37
15
  ]
38
16
  },
39
17
  speedOptimization: {
@@ -44,30 +22,6 @@ module.exports = {
44
22
  prefetchURLs: 'on'
45
23
  },
46
24
  workers: {
47
- sitemapCurasao: {
48
- pattern: '*$DOMAIN/sitemap.xml*',
49
- script: 'sitemap-curasao'
50
- },
51
- sitemapMalta: {
52
- pattern: '*$DOMAIN/sitemap.xml*',
53
- script: 'sitemap-malta'
54
- },
55
- sitemapAustralia: {
56
- pattern: '*$DOMAIN/sitemap.xml*',
57
- script: 'sitemap-xml-au'
58
- },
59
- robotsCurasao: {
60
- pattern: '*$DOMAIN/robots.txt*',
61
- script: 'kingbillycasinocom-robotstxt'
62
- },
63
- robotsMalta: {
64
- pattern: '*$DOMAIN/robots.txt*',
65
- script: 'kingbillycom-robotstxt'
66
- },
67
- robotsAustralia: {
68
- pattern: '*$DOMAIN/robots.txt*',
69
- script: 'robots_block_seo'
70
- },
71
25
  disableApi: {
72
26
  pattern: '*$DOMAIN/api/*',
73
27
  script: null
@@ -126,6 +80,6 @@ module.exports = {
126
80
  argoSmartRouting: 'on'
127
81
  },
128
82
  scrapeShield: {
129
- hotlinkProtection: 'off'
83
+ hotlinkProtection: 'on'
130
84
  }
131
85
  }