mf-hosting-frontend 1.5.1 → 1.5.3
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 +14 -3
- package/pkg/nginx.conf +2 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mf-hosting-frontend",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"description": "hosting definitions for frontend @MF",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"semantic-release": "^20.0.2"
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"well-known.content.dir": "/srv/http/.well-known/",
|
|
53
53
|
"wss.api": "${wss.origin}${http.api.path}",
|
|
54
54
|
"wss.origin": "${http.origin}",
|
|
55
|
-
"nginx.trailer": "",
|
|
55
|
+
"nginx.location.trailer": "",
|
|
56
56
|
"hooks": "pkg/hooks.sh"
|
|
57
57
|
},
|
|
58
58
|
{
|
|
@@ -67,7 +67,18 @@
|
|
|
67
67
|
"groups": "examples",
|
|
68
68
|
"description": "example showing ${name} features in action",
|
|
69
69
|
"variant": "mf.linux.frontend",
|
|
70
|
-
"nginx.trailer": "access_log off
|
|
70
|
+
"nginx.location.trailer": " access_log off;\n"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"requires": {
|
|
74
|
+
"properties": {
|
|
75
|
+
"frontend": true,
|
|
76
|
+
"example": true,
|
|
77
|
+
"mode": "development"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"http.base.path": "",
|
|
81
|
+
"variant": "mf.linux.frontend"
|
|
71
82
|
}
|
|
72
83
|
],
|
|
73
84
|
"template": {
|
package/pkg/nginx.conf
CHANGED
|
@@ -3,8 +3,7 @@ location {{http.path}}/assets {
|
|
|
3
3
|
gzip_static on;
|
|
4
4
|
add_header Content-Security-Policy "{{csp.header}}" always;
|
|
5
5
|
add_header Cache-Control "public, max-age=31536000";
|
|
6
|
-
|
|
7
|
-
}
|
|
6
|
+
{{nginx.location.trailer}}}
|
|
8
7
|
|
|
9
8
|
location {{http.path}} {
|
|
10
9
|
alias {{install.dir}};
|
|
@@ -12,5 +11,4 @@ location {{http.path}} {
|
|
|
12
11
|
add_header Content-Security-Policy "{{csp.header}}" always;
|
|
13
12
|
add_header Reporting-Endpoints "csp-endpoint='{{csp.endpoint}}'" always;
|
|
14
13
|
add_header Cache-Control "public";
|
|
15
|
-
|
|
16
|
-
}
|
|
14
|
+
{{nginx.location.trailer}}}
|