mf-hosting-frontend 3.4.0 → 3.5.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 +10 -6
- package/pkg/nginx.conf +2 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mf-hosting-frontend",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.1",
|
|
4
4
|
"files": [
|
|
5
5
|
".releaserc.json",
|
|
6
6
|
"pkg/compress-hooks.sh",
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
"properties": {
|
|
40
40
|
"nginx": true,
|
|
41
41
|
"nginx.sites.dir": "/etc/nginx/sites/common/",
|
|
42
|
-
"nginx.content.dir": "/srv/http/"
|
|
42
|
+
"nginx.content.dir": "/srv/http/",
|
|
43
|
+
"nginx.location.header": " brotli_static on;\n"
|
|
43
44
|
},
|
|
44
45
|
"dependencies": {
|
|
45
46
|
"nginx-mainline": ">=1.27.1",
|
|
@@ -50,14 +51,15 @@
|
|
|
50
51
|
"debian": {
|
|
51
52
|
"properties": {
|
|
52
53
|
"nginx": true,
|
|
53
|
-
"nginx.sites.dir": "/etc/nginx/sites-available/",
|
|
54
54
|
"nginx.content.dir": "/var/www/html/"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"nginx": ">=1.22.1"
|
|
55
58
|
}
|
|
56
59
|
},
|
|
57
60
|
"rpm": {
|
|
58
61
|
"properties": {
|
|
59
|
-
"nginx": true
|
|
60
|
-
"nginx.sites.dir": "/etc/nginx/sites-available/"
|
|
62
|
+
"nginx": true
|
|
61
63
|
}
|
|
62
64
|
}
|
|
63
65
|
},
|
|
@@ -94,8 +96,10 @@
|
|
|
94
96
|
"wss.api": "${wss.origin}${http.api.path}",
|
|
95
97
|
"wss.origin": "wss://${domain1}",
|
|
96
98
|
"wss.origins": "${wss.origin} wss://${domain2} wss://${domain3}",
|
|
99
|
+
"nginx.location.header": "",
|
|
97
100
|
"nginx.location.trailer": "",
|
|
98
|
-
"nginx.server.extra": ""
|
|
101
|
+
"nginx.server.extra": "",
|
|
102
|
+
"nginx.sites.dir": "/etc/nginx/sites-available/"
|
|
99
103
|
},
|
|
100
104
|
{
|
|
101
105
|
"requires": {
|
package/pkg/nginx.conf
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
location {{http.path}}/assets {
|
|
2
|
-
alias {{install.dir}}assets/;
|
|
3
|
-
brotli_static on;
|
|
2
|
+
{{nginx.location.header}} alias {{install.dir}}assets/;
|
|
4
3
|
add_header X-Content-Type-Options nosniff;
|
|
5
4
|
add_header Content-Security-Policy "{{csp.header}}" always;
|
|
6
5
|
add_header Cache-Control "public,max-age=31536000,immutable";
|
|
@@ -8,9 +7,8 @@ location {{http.path}}/assets {
|
|
|
8
7
|
{{nginx.location.trailer}}}
|
|
9
8
|
|
|
10
9
|
location {{http.path.lonesome}} {
|
|
11
|
-
alias {{install.dir}};
|
|
10
|
+
{{nginx.location.header}} alias {{install.dir}};
|
|
12
11
|
try_files $uri$args $uri$args/ {{http.path}}/index.html;
|
|
13
|
-
brotli_static on;
|
|
14
12
|
add_header X-Content-Type-Options nosniff;
|
|
15
13
|
add_header Content-Security-Policy "{{csp.header}}" always;
|
|
16
14
|
add_header Reporting-Endpoints "csp-endpoint='{{csp.endpoint}}'" always;
|