@smi-digital/create-smi-app 2.9.0 → 2.9.1
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/package.json
CHANGED
|
@@ -15,6 +15,14 @@
|
|
|
15
15
|
proxy_cache_path /var/cache/nginx/astro levels=1:2 keys_zone=astro_cache:10m max_size=1g inactive=60m use_temp_path=off;
|
|
16
16
|
proxy_cache_path /var/cache/nginx/strapi levels=1:2 keys_zone=strapi_cache:10m max_size=2g inactive=7d use_temp_path=off;
|
|
17
17
|
|
|
18
|
+
# WebSocket upgrade support — `strapi transfer` and some admin features open a
|
|
19
|
+
# WebSocket; without this the upgrade collapses to a plain 200 and the transfer
|
|
20
|
+
# fails with "Unexpected server response 200".
|
|
21
|
+
map $http_upgrade $connection_upgrade {
|
|
22
|
+
default upgrade;
|
|
23
|
+
'' close;
|
|
24
|
+
}
|
|
25
|
+
|
|
18
26
|
gzip on;
|
|
19
27
|
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
|
|
20
28
|
|
|
@@ -93,6 +101,14 @@ server {
|
|
|
93
101
|
location / {
|
|
94
102
|
proxy_pass http://__APP_NAME__-strapi:1337;
|
|
95
103
|
|
|
104
|
+
# WebSocket upgrade (strapi transfer / admin). Long timeouts so a big
|
|
105
|
+
# data transfer isn't dropped mid-stream.
|
|
106
|
+
proxy_http_version 1.1;
|
|
107
|
+
proxy_set_header Upgrade $http_upgrade;
|
|
108
|
+
proxy_set_header Connection $connection_upgrade;
|
|
109
|
+
proxy_read_timeout 3600s;
|
|
110
|
+
proxy_send_timeout 3600s;
|
|
111
|
+
|
|
96
112
|
proxy_set_header Host $host;
|
|
97
113
|
proxy_set_header X-Real-IP $remote_addr;
|
|
98
114
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|