@scandipwa/magento-scripts 1.16.0-alpha.1 → 1.16.0-alpha.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.
package/lib/config/docker.js
CHANGED
|
@@ -281,7 +281,7 @@ module.exports = async ({ configuration, ssl, host }, config) => {
|
|
|
281
281
|
restart: 'on-failure:30',
|
|
282
282
|
network: isNotNativeLinux ? network.name : 'host',
|
|
283
283
|
// eslint-disable-next-line max-len
|
|
284
|
-
command: `/bin/bash -c "varnishd -a :${ isNotNativeLinux ? 80 : ports.varnish } -t 600 -f /etc/varnish/default.vcl -s malloc,512m && varnishlog"`,
|
|
284
|
+
command: `/bin/bash -c "varnishd -a :${ isNotNativeLinux ? 80 : ports.varnish } -t 600 -f /etc/varnish/default.vcl -s malloc,512m -p http_resp_hdr_len=70000 -p http_resp_size=100000 && varnishlog"`,
|
|
285
285
|
tmpfs: [
|
|
286
286
|
'/var/lib/varnish:exec'
|
|
287
287
|
]
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
upstream fastcgi_backend {
|
|
2
2
|
# use tcp connection
|
|
3
3
|
server <%= it.hostMachine %>:<%= it.ports.fpm %>;
|
|
4
|
+
|
|
5
|
+
keepalive 16;
|
|
4
6
|
}
|
|
5
7
|
|
|
6
8
|
server {
|
|
@@ -163,6 +165,7 @@ server {
|
|
|
163
165
|
fastcgi_read_timeout 600s;
|
|
164
166
|
fastcgi_connect_timeout 600s;
|
|
165
167
|
|
|
168
|
+
fastcgi_keep_conn on;
|
|
166
169
|
fastcgi_index index.php;
|
|
167
170
|
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
|
168
171
|
include fastcgi_params;
|
|
@@ -3,6 +3,12 @@ set_real_ip_from 10.0.0.0/8;
|
|
|
3
3
|
set_real_ip_from 172.0.0.0/8;
|
|
4
4
|
real_ip_recursive on;
|
|
5
5
|
|
|
6
|
+
upstream app_backend {
|
|
7
|
+
server <%= it.hostMachine %>:<% if (it.config.configuration.varnish.enabled) { %><%= it.ports.varnish %><% } else { %><%= it.ports.app %><% } %>;
|
|
8
|
+
|
|
9
|
+
keepalive 16;
|
|
10
|
+
}
|
|
11
|
+
|
|
6
12
|
server {
|
|
7
13
|
listen <%= it.hostPort %>;
|
|
8
14
|
<% if (it.config.ssl.enabled) { %> listen 443 ssl;
|
|
@@ -28,6 +34,6 @@ server {
|
|
|
28
34
|
proxy_read_timeout 300;
|
|
29
35
|
send_timeout 300;
|
|
30
36
|
|
|
31
|
-
proxy_pass http
|
|
37
|
+
proxy_pass http://app_backend;
|
|
32
38
|
}
|
|
33
39
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Scripts and configuration used by CMA.",
|
|
4
4
|
"homepage": "https://docs.create-magento-app.com/",
|
|
5
5
|
"repository": "github:scandipwa/create-magento-app",
|
|
6
|
-
"version": "1.16.0-alpha.
|
|
6
|
+
"version": "1.16.0-alpha.2",
|
|
7
7
|
"main": "./index.js",
|
|
8
8
|
"types": "./typings/index.d.ts",
|
|
9
9
|
"license": "OSL-3.0",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"mysql",
|
|
54
54
|
"scandipwa"
|
|
55
55
|
],
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "a8b18468296f30f92ba957e6cb96e3af3777f856"
|
|
57
57
|
}
|