@scandipwa/magento-scripts 1.14.1-alpha.0 → 1.14.1-alpha.11

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 (146) hide show
  1. package/index.js +13 -0
  2. package/lib/commands/cli.js +28 -1
  3. package/lib/commands/execute.js +2 -1
  4. package/lib/commands/logs.js +1 -0
  5. package/lib/commands/start.js +18 -5
  6. package/lib/config/dependencies-for-platforms.js +12 -2
  7. package/lib/config/docker.js +89 -15
  8. package/lib/config/get-port-config.js +9 -3
  9. package/lib/config/index.js +2 -1
  10. package/lib/config/php/extensions/libsodium.js +2 -1
  11. package/lib/config/port-config.js +3 -1
  12. package/lib/config/scandipwa-versions.js +2 -1
  13. package/lib/config/ssl-terminator/index.js +10 -0
  14. package/lib/config/system-config.js +34 -5
  15. package/lib/config/templates/magentorc.template +3 -5
  16. package/lib/config/templates/nginx.template.conf +0 -14
  17. package/lib/config/templates/php.template.ini +6 -4
  18. package/lib/config/templates/ssl-terminator.template.conf +27 -0
  19. package/lib/config/templates/varnish.template.vcl +250 -0
  20. package/lib/config/varnish/varnish-6-0.js +11 -0
  21. package/lib/config/varnish/varnish-6-6.js +11 -0
  22. package/lib/config/varnish/varnish-7-0.js +11 -0
  23. package/lib/config/versions/magento-2.3.0.js +9 -1
  24. package/lib/config/versions/magento-2.3.1.js +9 -1
  25. package/lib/config/versions/magento-2.3.2-p2.js +9 -1
  26. package/lib/config/versions/magento-2.3.2.js +9 -1
  27. package/lib/config/versions/magento-2.3.3-p1.js +9 -1
  28. package/lib/config/versions/magento-2.3.3.js +9 -1
  29. package/lib/config/versions/magento-2.3.4-p2.js +9 -1
  30. package/lib/config/versions/magento-2.3.4.js +9 -1
  31. package/lib/config/versions/magento-2.3.5-p1.js +9 -1
  32. package/lib/config/versions/magento-2.3.5-p2.js +9 -1
  33. package/lib/config/versions/magento-2.3.5.js +9 -1
  34. package/lib/config/versions/magento-2.3.6-p1.js +9 -1
  35. package/lib/config/versions/magento-2.3.6.js +9 -1
  36. package/lib/config/versions/magento-2.3.7-p1.js +9 -1
  37. package/lib/config/versions/magento-2.3.7-p2.js +9 -1
  38. package/lib/config/versions/magento-2.3.7-p3.js +9 -1
  39. package/lib/config/versions/magento-2.3.7.js +9 -1
  40. package/lib/config/versions/magento-2.4.0-p1.js +9 -1
  41. package/lib/config/versions/magento-2.4.0.js +9 -1
  42. package/lib/config/versions/magento-2.4.1-p1.js +9 -1
  43. package/lib/config/versions/magento-2.4.1.js +9 -1
  44. package/lib/config/versions/magento-2.4.2-p1.js +9 -1
  45. package/lib/config/versions/magento-2.4.2-p2.js +9 -1
  46. package/lib/config/versions/magento-2.4.2.js +9 -1
  47. package/lib/config/versions/magento-2.4.3-p1.js +9 -1
  48. package/lib/config/versions/magento-2.4.3-p2.js +9 -1
  49. package/lib/config/versions/magento-2.4.3.js +9 -1
  50. package/lib/config/versions/magento-2.4.4.js +9 -1
  51. package/lib/errors/known-error.js +15 -0
  52. package/lib/errors/unknown-error.js +15 -0
  53. package/lib/tasks/cli/create-bashrc-config.js +7 -3
  54. package/lib/tasks/composer/index.js +5 -3
  55. package/lib/tasks/composer/local-auth-json.js +4 -2
  56. package/lib/tasks/docker/containers.js +13 -8
  57. package/lib/tasks/docker/network.js +2 -1
  58. package/lib/tasks/docker/volumes.js +4 -4
  59. package/lib/tasks/file-system/create-nginx-config.js +9 -40
  60. package/lib/tasks/file-system/create-php-config.js +2 -1
  61. package/lib/tasks/file-system/create-php-fpm-config.js +2 -1
  62. package/lib/tasks/file-system/create-php-storm-config.js +6 -5
  63. package/lib/tasks/file-system/create-ssl-terminator-config.js +96 -0
  64. package/lib/tasks/file-system/create-varnish-config.js +53 -0
  65. package/lib/tasks/file-system/create-vscode-config.js +3 -2
  66. package/lib/tasks/file-system/index.js +5 -1
  67. package/lib/tasks/magento/enable-magento-composer-plugins.js +3 -2
  68. package/lib/tasks/magento/install-magento.js +7 -5
  69. package/lib/tasks/magento/setup-magento/configure-elasticsearch.js +1 -1
  70. package/lib/tasks/magento/setup-magento/disable-2fa.js +4 -12
  71. package/lib/tasks/magento/setup-magento/disable-full-page-cache.js +20 -0
  72. package/lib/tasks/magento/setup-magento/flush-redis-config.js +2 -1
  73. package/lib/tasks/magento/setup-magento/increase-admin-session-lifetime.js +14 -16
  74. package/lib/tasks/magento/setup-magento/index.js +3 -1
  75. package/lib/tasks/magento/setup-magento/install-magento.js +2 -1
  76. package/lib/tasks/magento/setup-magento/migrate-database.js +24 -11
  77. package/lib/tasks/magento/setup-magento/set-base-url.js +7 -2
  78. package/lib/tasks/magento/setup-magento/upgrade-magento.js +27 -3
  79. package/lib/tasks/magento/setup-magento/varnish-config.js +69 -0
  80. package/lib/tasks/magento/setup-magento/waiting-for-varnish.js +41 -0
  81. package/lib/tasks/mysql/connect-to-mysql.js +2 -1
  82. package/lib/tasks/mysql/fix-db.js +2 -2
  83. package/lib/tasks/mysql/import-dump-to-mysql.js +4 -2
  84. package/lib/tasks/mysql/import-remote-db/index.js +2 -1
  85. package/lib/tasks/mysql/import-remote-db/ssh/index.js +2 -1
  86. package/lib/tasks/mysql/import-remote-db/ssh/regular-server.js +2 -1
  87. package/lib/tasks/php/bundled-extensions.js +28 -0
  88. package/lib/tasks/php/compile-options.js +18 -48
  89. package/lib/tasks/php/compile.js +4 -3
  90. package/lib/tasks/php/configure.js +7 -66
  91. package/lib/tasks/php/extensions/index.js +71 -0
  92. package/lib/tasks/php/index.js +8 -7
  93. package/lib/tasks/php/update-env-php.js +16 -1
  94. package/lib/tasks/php/update-env.php +56 -12
  95. package/lib/tasks/php/update-phpbrew.js +2 -1
  96. package/lib/tasks/php/validate-php.js +67 -0
  97. package/lib/tasks/php-fpm/start-php-fpm.js +2 -1
  98. package/lib/tasks/requirements/composer.js +5 -3
  99. package/lib/tasks/requirements/dependency/arch.js +2 -1
  100. package/lib/tasks/requirements/dependency/centos.js +2 -1
  101. package/lib/tasks/requirements/dependency/fedora.js +2 -1
  102. package/lib/tasks/requirements/docker/index.js +7 -4
  103. package/lib/tasks/requirements/docker/install.js +13 -12
  104. package/lib/tasks/requirements/docker/running-status.js +138 -0
  105. package/lib/tasks/requirements/docker/version.js +3 -0
  106. package/lib/tasks/requirements/index.js +5 -5
  107. package/lib/tasks/requirements/node-version.js +2 -1
  108. package/lib/tasks/requirements/php-version.js +8 -4
  109. package/lib/tasks/requirements/phpbrew/index.js +2 -1
  110. package/lib/tasks/requirements/phpbrew/install.js +2 -1
  111. package/lib/tasks/requirements/phpbrew/version.js +2 -1
  112. package/lib/tasks/requirements/platform.js +3 -2
  113. package/lib/tasks/start.js +11 -10
  114. package/lib/tasks/status/index.js +25 -9
  115. package/lib/tasks/theme/build-theme.js +27 -8
  116. package/lib/tasks/theme/install-theme.js +18 -5
  117. package/lib/tasks/theme/link-theme.js +2 -2
  118. package/lib/tasks/theme/retrieve-theme-data.js +2 -1
  119. package/lib/tasks/theme/setup-persisted-query.js +5 -4
  120. package/lib/tasks/theme/setup-themes.js +5 -3
  121. package/lib/tasks/theme/symlink-theme.js +20 -4
  122. package/lib/util/analytics.js +337 -0
  123. package/lib/util/config-file-validator.js +14 -2
  124. package/lib/util/config-php-json.js +20 -0
  125. package/lib/util/env-php-json.js +3 -2
  126. package/lib/util/get-installed-magento-version.js +3 -2
  127. package/lib/util/get-jsonfile-data.js +2 -1
  128. package/lib/util/install-dependencies-task.js +4 -4
  129. package/lib/util/instance-metadata.js +11 -4
  130. package/lib/util/ip.js +45 -1
  131. package/lib/util/is-running-root.js +3 -0
  132. package/lib/util/magento-task.js +20 -9
  133. package/lib/util/match-filesystem.js +2 -1
  134. package/lib/util/php-task.js +6 -2
  135. package/lib/util/request.js +0 -0
  136. package/lib/util/resolve-configuration-with-overrides.js +2 -1
  137. package/lib/util/run-composer.js +3 -2
  138. package/lib/util/run-magento.js +3 -2
  139. package/lib/util/run-php.js +10 -3
  140. package/lib/util/systemctl.js +46 -0
  141. package/lib/util/wait-for-it.js +3 -2
  142. package/package.json +4 -3
  143. package/typings/context.d.ts +5 -1
  144. package/typings/index.d.ts +32 -1
  145. package/lib/tasks/magento/setup-magento/adjust-magento-configuration.js +0 -27
  146. package/lib/tasks/magento/setup-magento/disable-page-cache.js +0 -11
@@ -0,0 +1,250 @@
1
+ # VCL version 5.0 is not supported so it should be 4.0 even though actually used Varnish version is 6
2
+ vcl 4.0;
3
+
4
+ import std;
5
+ # The minimal Varnish version is 6.0
6
+ # For SSL offloading, pass the following header in your proxy server or load balancer: 'X-Forwarded-Proto: https'
7
+
8
+ backend default {
9
+ .host = "<%= it.hostMachine %>";
10
+ .host_header = "Host: localhost";
11
+ .port = "<%= it.nginxPort %>";
12
+ .first_byte_timeout = 600s;
13
+ .probe = {
14
+ # .url = "/health_check.php";
15
+ .request =
16
+ "GET /health_check.php HTTP/1.1"
17
+ "Host: localhost"
18
+ "Connection: close"
19
+ "User-Agent: Varnish Health Probe";
20
+ .interval = 10s;
21
+ .timeout = 5s;
22
+ .window = 5;
23
+ .threshold = 3;
24
+ }
25
+ }
26
+
27
+ acl purge {
28
+ "<%= it.hostMachine %>";
29
+ "localhost";
30
+ "172.0.0.0"/8;
31
+ "192.168.0.0"/16;
32
+ }
33
+
34
+ sub vcl_recv {
35
+ if (req.restarts > 0) {
36
+ set req.hash_always_miss = true;
37
+ }
38
+
39
+ if (req.method == "PURGE") {
40
+ if (client.ip !~ purge) {
41
+ return (synth(405, "Method not allowed"));
42
+ }
43
+ # To use the X-Pool header for purging varnish during automated deployments, make sure the X-Pool header
44
+ # has been added to the response in your backend server config. This is used, for example, by the
45
+ # capistrano-magento2 gem for purging old content from varnish during it's deploy routine.
46
+ if (!req.http.X-Magento-Tags-Pattern && !req.http.X-Pool) {
47
+ return (synth(400, "X-Magento-Tags-Pattern or X-Pool header required"));
48
+ }
49
+ if (req.http.X-Magento-Tags-Pattern) {
50
+ ban("obj.http.X-Magento-Tags ~ " + req.http.X-Magento-Tags-Pattern);
51
+ }
52
+ if (req.http.X-Pool) {
53
+ ban("obj.http.X-Pool ~ " + req.http.X-Pool);
54
+ }
55
+ return (synth(200, "Purged"));
56
+ }
57
+
58
+ if (req.method != "GET" &&
59
+ req.method != "HEAD" &&
60
+ req.method != "PUT" &&
61
+ req.method != "POST" &&
62
+ req.method != "TRACE" &&
63
+ req.method != "OPTIONS" &&
64
+ req.method != "DELETE") {
65
+ /* Non-RFC2616 or CONNECT which is weird. */
66
+ return (pipe);
67
+ }
68
+
69
+ # We only deal with GET and HEAD by default
70
+ if (req.method != "GET" && req.method != "HEAD") {
71
+ return (pass);
72
+ }
73
+
74
+ # Bypass customer, shopping cart, checkout
75
+ if (req.url ~ "/customer" || req.url ~ "/checkout") {
76
+ return (pass);
77
+ }
78
+
79
+ # Bypass health check requests
80
+ if (req.url ~ "^/(pub/)?(health_check.php)$") {
81
+ return (pass);
82
+ }
83
+
84
+ # Set initial grace period usage status
85
+ set req.http.grace = "none";
86
+
87
+ # normalize url in case of leading HTTP scheme and domain
88
+ set req.url = regsub(req.url, "^http[s]?://", "");
89
+
90
+ # collect all cookies
91
+ std.collect(req.http.Cookie);
92
+
93
+ # Compression filter. See https://www.varnish-cache.org/trac/wiki/FAQ/Compression
94
+ if (req.http.Accept-Encoding) {
95
+ if (req.url ~ "\.(jpg|jpeg|png|gif|gz|tgz|bz2|tbz|mp3|ogg|swf|flv)$") {
96
+ # No point in compressing these
97
+ unset req.http.Accept-Encoding;
98
+ } elsif (req.http.Accept-Encoding ~ "gzip") {
99
+ set req.http.Accept-Encoding = "gzip";
100
+ } elsif (req.http.Accept-Encoding ~ "deflate" && req.http.user-agent !~ "MSIE") {
101
+ set req.http.Accept-Encoding = "deflate";
102
+ } else {
103
+ # unknown algorithm
104
+ unset req.http.Accept-Encoding;
105
+ }
106
+ }
107
+
108
+ # Remove all marketing get parameters to minimize the cache objects
109
+ if (req.url ~ "(\?|&)(gclid|cx|ie|cof|siteurl|zanpid|origin|fbclid|mc_[a-z]+|utm_[a-z]+|_bta_[a-z]+)=") {
110
+ set req.url = regsuball(req.url, "(gclid|cx|ie|cof|siteurl|zanpid|origin|fbclid|mc_[a-z]+|utm_[a-z]+|_bta_[a-z]+)=[-_A-z0-9+()%.]+&?", "");
111
+ set req.url = regsub(req.url, "[?|&]+$", "");
112
+ }
113
+
114
+ # Static files caching
115
+ if (req.url ~ "^/(pub/)?(media|static)/") {
116
+ # Static files should not be cached by default
117
+ return (pass);
118
+
119
+ # But if you use a few locales and don't use CDN you can enable caching static files by commenting previous line (#return (pass);) and uncommenting next 3 lines
120
+ #unset req.http.Https;
121
+ #unset req.http.X-Forwarded-Proto;
122
+ #unset req.http.Cookie;
123
+ }
124
+
125
+ # Authenticated GraphQL requests should not be cached by default
126
+ if (req.url ~ "/graphql" && req.http.Authorization ~ "^Bearer") {
127
+ return (pass);
128
+ }
129
+
130
+ return (hash);
131
+ }
132
+
133
+ sub vcl_hash {
134
+ if (req.http.cookie ~ "X-Magento-Vary=") {
135
+ hash_data(regsub(req.http.cookie, "^.*?X-Magento-Vary=([^;]+);*.*$", "\1"));
136
+ }
137
+
138
+ # To make sure http users don't see ssl warning
139
+ if (req.http.X-Forwarded-Proto) {
140
+ hash_data(req.http.X-Forwarded-Proto);
141
+ }
142
+
143
+ if (req.url ~ "/graphql") {
144
+ call process_graphql_headers;
145
+ }
146
+ }
147
+
148
+ sub process_graphql_headers {
149
+ if (req.http.Store) {
150
+ hash_data(req.http.Store);
151
+ }
152
+ if (req.http.Content-Currency) {
153
+ hash_data(req.http.Content-Currency);
154
+ }
155
+ }
156
+
157
+ sub vcl_backend_response {
158
+
159
+ set beresp.grace = 3d;
160
+
161
+ if (beresp.http.content-type ~ "text") {
162
+ set beresp.do_esi = true;
163
+ }
164
+
165
+ if (bereq.url ~ "\.js$" || beresp.http.content-type ~ "text") {
166
+ set beresp.do_gzip = true;
167
+ }
168
+
169
+ if (beresp.http.X-Magento-Debug) {
170
+ set beresp.http.X-Magento-Cache-Control = beresp.http.Cache-Control;
171
+ }
172
+
173
+ # cache only successfully responses and 404s
174
+ if (beresp.status != 200 && beresp.status != 404) {
175
+ set beresp.ttl = 0s;
176
+ set beresp.uncacheable = true;
177
+ return (deliver);
178
+ } elsif (beresp.http.Cache-Control ~ "private") {
179
+ set beresp.uncacheable = true;
180
+ set beresp.ttl = 86400s;
181
+ return (deliver);
182
+ }
183
+
184
+ # validate if we need to cache it and prevent from setting cookie
185
+ if (beresp.ttl > 0s && (bereq.method == "GET" || bereq.method == "HEAD")) {
186
+ unset beresp.http.set-cookie;
187
+ }
188
+
189
+ # If page is not cacheable then bypass varnish for 2 minutes as Hit-For-Pass
190
+ if (beresp.ttl <= 0s ||
191
+ beresp.http.Surrogate-control ~ "no-store" ||
192
+ (!beresp.http.Surrogate-Control &&
193
+ beresp.http.Cache-Control ~ "no-cache|no-store") ||
194
+ beresp.http.Vary == "*") {
195
+ # Mark as Hit-For-Pass for the next 2 minutes
196
+ set beresp.ttl = 120s;
197
+ set beresp.uncacheable = true;
198
+ }
199
+
200
+ return (deliver);
201
+ }
202
+
203
+ sub vcl_deliver {
204
+ if (resp.http.X-Magento-Debug) {
205
+ if (resp.http.x-varnish ~ " ") {
206
+ set resp.http.X-Magento-Cache-Debug = "HIT";
207
+ set resp.http.Grace = req.http.grace;
208
+ } else {
209
+ set resp.http.X-Magento-Cache-Debug = "MISS";
210
+ }
211
+ } else {
212
+ unset resp.http.Age;
213
+ }
214
+
215
+ # Not letting browser to cache non-static files.
216
+ if (resp.http.Cache-Control !~ "private" && req.url !~ "^/(pub/)?(media|static)/") {
217
+ set resp.http.Pragma = "no-cache";
218
+ set resp.http.Expires = "-1";
219
+ set resp.http.Cache-Control = "no-store, no-cache, must-revalidate, max-age=0";
220
+ }
221
+
222
+ unset resp.http.X-Magento-Debug;
223
+ unset resp.http.X-Magento-Tags;
224
+ unset resp.http.X-Powered-By;
225
+ unset resp.http.Server;
226
+ unset resp.http.X-Varnish;
227
+ unset resp.http.Via;
228
+ unset resp.http.Link;
229
+ }
230
+
231
+ sub vcl_hit {
232
+ if (obj.ttl >= 0s) {
233
+ # Hit within TTL period
234
+ return (deliver);
235
+ }
236
+ if (std.healthy(req.backend_hint)) {
237
+ if (obj.ttl + 300s > 0s) {
238
+ # Hit after TTL expiration, but within grace period
239
+ set req.http.grace = "normal (healthy server)";
240
+ return (deliver);
241
+ } else {
242
+ # Hit after TTL and grace expiration
243
+ return (restart);
244
+ }
245
+ } else {
246
+ # server is not healthy, retrieve from cache
247
+ set req.http.grace = "unlimited (unhealthy server)";
248
+ return (deliver);
249
+ }
250
+ }
@@ -0,0 +1,11 @@
1
+ const path = require('path');
2
+
3
+ const varnish60 = ({ templateDir }) => ({
4
+ enabled: true,
5
+ version: '6.0',
6
+ configTemplate: path.join(templateDir || '', 'varnish.template.vcl')
7
+ });
8
+
9
+ module.exports = {
10
+ varnish60
11
+ };
@@ -0,0 +1,11 @@
1
+ const path = require('path');
2
+
3
+ const varnish66 = ({ templateDir }) => ({
4
+ enabled: true,
5
+ version: '6.6',
6
+ configTemplate: path.join(templateDir || '', 'varnish.template.vcl')
7
+ });
8
+
9
+ module.exports = {
10
+ varnish66
11
+ };
@@ -0,0 +1,11 @@
1
+ const path = require('path');
2
+
3
+ const varnish70 = ({ templateDir }) => ({
4
+ enabled: true,
5
+ version: '7.0',
6
+ configTemplate: path.join(templateDir || '', 'varnish.template.vcl')
7
+ });
8
+
9
+ module.exports = {
10
+ varnish70
11
+ };
@@ -1,5 +1,7 @@
1
1
  const path = require('path');
2
2
  const { defaultMagentoConfig } = require('../magento-config');
3
+ const { sslTerminator } = require('../ssl-terminator');
4
+ const { varnish66 } = require('../varnish/varnish-6-6');
3
5
 
4
6
  module.exports = ({ templateDir } = {}) => ({
5
7
  magentoVersion: '2.3.0',
@@ -18,6 +20,10 @@ module.exports = ({ templateDir } = {}) => ({
18
20
  SimpleXML: {},
19
21
  xdebug: {
20
22
  version: '3.1.2'
23
+ },
24
+ apcu: {},
25
+ opcache: {
26
+ extensionName: 'Zend OPcache'
21
27
  }
22
28
  }
23
29
  },
@@ -39,7 +45,9 @@ module.exports = ({ templateDir } = {}) => ({
39
45
  },
40
46
  composer: {
41
47
  version: '1'
42
- }
48
+ },
49
+ varnish: varnish66({ templateDir }),
50
+ sslTerminator: sslTerminator({ templateDir })
43
51
  },
44
52
  magento: defaultMagentoConfig,
45
53
  host: 'localhost',
@@ -1,5 +1,7 @@
1
1
  const path = require('path');
2
2
  const { defaultMagentoConfig } = require('../magento-config');
3
+ const { sslTerminator } = require('../ssl-terminator');
4
+ const { varnish66 } = require('../varnish/varnish-6-6');
3
5
 
4
6
  module.exports = ({ templateDir } = {}) => ({
5
7
  magentoVersion: '2.3.1',
@@ -18,6 +20,10 @@ module.exports = ({ templateDir } = {}) => ({
18
20
  SimpleXML: {},
19
21
  xdebug: {
20
22
  version: '3.1.2'
23
+ },
24
+ apcu: {},
25
+ opcache: {
26
+ extensionName: 'Zend OPcache'
21
27
  }
22
28
  }
23
29
  },
@@ -39,7 +45,9 @@ module.exports = ({ templateDir } = {}) => ({
39
45
  },
40
46
  composer: {
41
47
  version: '1'
42
- }
48
+ },
49
+ varnish: varnish66({ templateDir }),
50
+ sslTerminator: sslTerminator({ templateDir })
43
51
  },
44
52
  magento: defaultMagentoConfig,
45
53
  host: 'localhost',
@@ -1,5 +1,7 @@
1
1
  const path = require('path');
2
2
  const { defaultMagentoConfig } = require('../magento-config');
3
+ const { sslTerminator } = require('../ssl-terminator');
4
+ const { varnish66 } = require('../varnish/varnish-6-6');
3
5
 
4
6
  module.exports = ({ templateDir } = {}) => ({
5
7
  magentoVersion: '2.3.2-p2',
@@ -18,6 +20,10 @@ module.exports = ({ templateDir } = {}) => ({
18
20
  SimpleXML: {},
19
21
  xdebug: {
20
22
  version: '3.1.2'
23
+ },
24
+ apcu: {},
25
+ opcache: {
26
+ extensionName: 'Zend OPcache'
21
27
  }
22
28
  }
23
29
  },
@@ -39,7 +45,9 @@ module.exports = ({ templateDir } = {}) => ({
39
45
  },
40
46
  composer: {
41
47
  version: '1'
42
- }
48
+ },
49
+ varnish: varnish66({ templateDir }),
50
+ sslTerminator: sslTerminator({ templateDir })
43
51
  },
44
52
  magento: defaultMagentoConfig,
45
53
  host: 'localhost',
@@ -1,5 +1,7 @@
1
1
  const path = require('path');
2
2
  const { defaultMagentoConfig } = require('../magento-config');
3
+ const { sslTerminator } = require('../ssl-terminator');
4
+ const { varnish66 } = require('../varnish/varnish-6-6');
3
5
 
4
6
  module.exports = ({ templateDir } = {}) => ({
5
7
  magentoVersion: '2.3.2',
@@ -18,6 +20,10 @@ module.exports = ({ templateDir } = {}) => ({
18
20
  SimpleXML: {},
19
21
  xdebug: {
20
22
  version: '3.1.2'
23
+ },
24
+ apcu: {},
25
+ opcache: {
26
+ extensionName: 'Zend OPcache'
21
27
  }
22
28
  }
23
29
  },
@@ -39,7 +45,9 @@ module.exports = ({ templateDir } = {}) => ({
39
45
  },
40
46
  composer: {
41
47
  version: '1'
42
- }
48
+ },
49
+ varnish: varnish66({ templateDir }),
50
+ sslTerminator: sslTerminator({ templateDir })
43
51
  },
44
52
  magento: defaultMagentoConfig,
45
53
  host: 'localhost',
@@ -1,5 +1,7 @@
1
1
  const path = require('path');
2
2
  const { defaultMagentoConfig } = require('../magento-config');
3
+ const { sslTerminator } = require('../ssl-terminator');
4
+ const { varnish66 } = require('../varnish/varnish-6-6');
3
5
 
4
6
  module.exports = ({ templateDir } = {}) => ({
5
7
  magentoVersion: '2.3.3-p1',
@@ -18,6 +20,10 @@ module.exports = ({ templateDir } = {}) => ({
18
20
  SimpleXML: {},
19
21
  xdebug: {
20
22
  version: '3.1.2'
23
+ },
24
+ apcu: {},
25
+ opcache: {
26
+ extensionName: 'Zend OPcache'
21
27
  }
22
28
  }
23
29
  },
@@ -39,7 +45,9 @@ module.exports = ({ templateDir } = {}) => ({
39
45
  },
40
46
  composer: {
41
47
  version: '1'
42
- }
48
+ },
49
+ varnish: varnish66({ templateDir }),
50
+ sslTerminator: sslTerminator({ templateDir })
43
51
  },
44
52
  magento: defaultMagentoConfig,
45
53
  host: 'localhost',
@@ -1,5 +1,7 @@
1
1
  const path = require('path');
2
2
  const { defaultMagentoConfig } = require('../magento-config');
3
+ const { sslTerminator } = require('../ssl-terminator');
4
+ const { varnish66 } = require('../varnish/varnish-6-6');
3
5
 
4
6
  module.exports = ({ templateDir } = {}) => ({
5
7
  magentoVersion: '2.3.3',
@@ -18,6 +20,10 @@ module.exports = ({ templateDir } = {}) => ({
18
20
  SimpleXML: {},
19
21
  xdebug: {
20
22
  version: '3.1.2'
23
+ },
24
+ apcu: {},
25
+ opcache: {
26
+ extensionName: 'Zend OPcache'
21
27
  }
22
28
  }
23
29
  },
@@ -39,7 +45,9 @@ module.exports = ({ templateDir } = {}) => ({
39
45
  },
40
46
  composer: {
41
47
  version: '1'
42
- }
48
+ },
49
+ varnish: varnish66({ templateDir }),
50
+ sslTerminator: sslTerminator({ templateDir })
43
51
  },
44
52
  magento: defaultMagentoConfig,
45
53
  host: 'localhost',
@@ -1,5 +1,7 @@
1
1
  const path = require('path');
2
2
  const { defaultMagentoConfig } = require('../magento-config');
3
+ const { sslTerminator } = require('../ssl-terminator');
4
+ const { varnish66 } = require('../varnish/varnish-6-6');
3
5
 
4
6
  module.exports = ({ templateDir } = {}) => ({
5
7
  magentoVersion: '2.3.4-p2',
@@ -18,6 +20,10 @@ module.exports = ({ templateDir } = {}) => ({
18
20
  SimpleXML: {},
19
21
  xdebug: {
20
22
  version: '3.1.2'
23
+ },
24
+ apcu: {},
25
+ opcache: {
26
+ extensionName: 'Zend OPcache'
21
27
  }
22
28
  }
23
29
  },
@@ -39,7 +45,9 @@ module.exports = ({ templateDir } = {}) => ({
39
45
  },
40
46
  composer: {
41
47
  version: '1'
42
- }
48
+ },
49
+ varnish: varnish66({ templateDir }),
50
+ sslTerminator: sslTerminator({ templateDir })
43
51
  },
44
52
  magento: defaultMagentoConfig,
45
53
  host: 'localhost',
@@ -1,5 +1,7 @@
1
1
  const path = require('path');
2
2
  const { defaultMagentoConfig } = require('../magento-config');
3
+ const { sslTerminator } = require('../ssl-terminator');
4
+ const { varnish66 } = require('../varnish/varnish-6-6');
3
5
 
4
6
  module.exports = ({ templateDir } = {}) => ({
5
7
  magentoVersion: '2.3.4',
@@ -18,6 +20,10 @@ module.exports = ({ templateDir } = {}) => ({
18
20
  SimpleXML: {},
19
21
  xdebug: {
20
22
  version: '3.1.2'
23
+ },
24
+ apcu: {},
25
+ opcache: {
26
+ extensionName: 'Zend OPcache'
21
27
  }
22
28
  }
23
29
  },
@@ -39,7 +45,9 @@ module.exports = ({ templateDir } = {}) => ({
39
45
  },
40
46
  composer: {
41
47
  version: '1'
42
- }
48
+ },
49
+ varnish: varnish66({ templateDir }),
50
+ sslTerminator: sslTerminator({ templateDir })
43
51
  },
44
52
  magento: defaultMagentoConfig,
45
53
  host: 'localhost',
@@ -1,5 +1,7 @@
1
1
  const path = require('path');
2
2
  const { defaultMagentoConfig } = require('../magento-config');
3
+ const { sslTerminator } = require('../ssl-terminator');
4
+ const { varnish66 } = require('../varnish/varnish-6-6');
3
5
 
4
6
  module.exports = ({ templateDir } = {}) => ({
5
7
  magentoVersion: '2.3.5-p1',
@@ -18,6 +20,10 @@ module.exports = ({ templateDir } = {}) => ({
18
20
  SimpleXML: {},
19
21
  xdebug: {
20
22
  version: '3.1.2'
23
+ },
24
+ apcu: {},
25
+ opcache: {
26
+ extensionName: 'Zend OPcache'
21
27
  }
22
28
  }
23
29
  },
@@ -39,7 +45,9 @@ module.exports = ({ templateDir } = {}) => ({
39
45
  },
40
46
  composer: {
41
47
  version: '1'
42
- }
48
+ },
49
+ varnish: varnish66({ templateDir }),
50
+ sslTerminator: sslTerminator({ templateDir })
43
51
  },
44
52
  magento: defaultMagentoConfig,
45
53
  host: 'localhost',
@@ -1,5 +1,7 @@
1
1
  const path = require('path');
2
2
  const { defaultMagentoConfig } = require('../magento-config');
3
+ const { sslTerminator } = require('../ssl-terminator');
4
+ const { varnish66 } = require('../varnish/varnish-6-6');
3
5
 
4
6
  module.exports = ({ templateDir } = {}) => ({
5
7
  magentoVersion: '2.3.5-p2',
@@ -18,6 +20,10 @@ module.exports = ({ templateDir } = {}) => ({
18
20
  SimpleXML: {},
19
21
  xdebug: {
20
22
  version: '3.1.2'
23
+ },
24
+ apcu: {},
25
+ opcache: {
26
+ extensionName: 'Zend OPcache'
21
27
  }
22
28
  }
23
29
  },
@@ -39,7 +45,9 @@ module.exports = ({ templateDir } = {}) => ({
39
45
  },
40
46
  composer: {
41
47
  version: '1'
42
- }
48
+ },
49
+ varnish: varnish66({ templateDir }),
50
+ sslTerminator: sslTerminator({ templateDir })
43
51
  },
44
52
  magento: defaultMagentoConfig,
45
53
  host: 'localhost',
@@ -1,5 +1,7 @@
1
1
  const path = require('path');
2
2
  const { defaultMagentoConfig } = require('../magento-config');
3
+ const { sslTerminator } = require('../ssl-terminator');
4
+ const { varnish66 } = require('../varnish/varnish-6-6');
3
5
 
4
6
  module.exports = ({ templateDir } = {}) => ({
5
7
  magentoVersion: '2.3.5',
@@ -18,6 +20,10 @@ module.exports = ({ templateDir } = {}) => ({
18
20
  SimpleXML: {},
19
21
  xdebug: {
20
22
  version: '3.1.2'
23
+ },
24
+ apcu: {},
25
+ opcache: {
26
+ extensionName: 'Zend OPcache'
21
27
  }
22
28
  }
23
29
  },
@@ -39,7 +45,9 @@ module.exports = ({ templateDir } = {}) => ({
39
45
  },
40
46
  composer: {
41
47
  version: '1'
42
- }
48
+ },
49
+ varnish: varnish66({ templateDir }),
50
+ sslTerminator: sslTerminator({ templateDir })
43
51
  },
44
52
  magento: defaultMagentoConfig,
45
53
  host: 'localhost',
@@ -1,5 +1,7 @@
1
1
  const path = require('path');
2
2
  const { defaultMagentoConfig } = require('../magento-config');
3
+ const { sslTerminator } = require('../ssl-terminator');
4
+ const { varnish66 } = require('../varnish/varnish-6-6');
3
5
 
4
6
  module.exports = ({ templateDir } = {}) => ({
5
7
  magentoVersion: '2.3.6-p1',
@@ -18,6 +20,10 @@ module.exports = ({ templateDir } = {}) => ({
18
20
  SimpleXML: {},
19
21
  xdebug: {
20
22
  version: '3.1.2'
23
+ },
24
+ apcu: {},
25
+ opcache: {
26
+ extensionName: 'Zend OPcache'
21
27
  }
22
28
  }
23
29
  },
@@ -39,7 +45,9 @@ module.exports = ({ templateDir } = {}) => ({
39
45
  },
40
46
  composer: {
41
47
  version: '1'
42
- }
48
+ },
49
+ varnish: varnish66({ templateDir }),
50
+ sslTerminator: sslTerminator({ templateDir })
43
51
  },
44
52
  magento: defaultMagentoConfig,
45
53
  host: 'localhost',
@@ -1,5 +1,7 @@
1
1
  const path = require('path');
2
2
  const { defaultMagentoConfig } = require('../magento-config');
3
+ const { sslTerminator } = require('../ssl-terminator');
4
+ const { varnish66 } = require('../varnish/varnish-6-6');
3
5
 
4
6
  module.exports = ({ templateDir } = {}) => ({
5
7
  magentoVersion: '2.3.6',
@@ -18,6 +20,10 @@ module.exports = ({ templateDir } = {}) => ({
18
20
  SimpleXML: {},
19
21
  xdebug: {
20
22
  version: '3.1.2'
23
+ },
24
+ apcu: {},
25
+ opcache: {
26
+ extensionName: 'Zend OPcache'
21
27
  }
22
28
  }
23
29
  },
@@ -39,7 +45,9 @@ module.exports = ({ templateDir } = {}) => ({
39
45
  },
40
46
  composer: {
41
47
  version: '1'
42
- }
48
+ },
49
+ varnish: varnish66({ templateDir }),
50
+ sslTerminator: sslTerminator({ templateDir })
43
51
  },
44
52
  magento: defaultMagentoConfig,
45
53
  host: 'localhost',