mf-hosting-frontend 2.0.2 → 2.2.0

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 (2) hide show
  1. package/package.json +16 -2
  2. package/pkg/nginx.conf +1 -1
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "mf-hosting-frontend",
3
- "version": "2.0.2",
3
+ "version": "2.2.0",
4
4
  "description": "hosting definitions for frontend @MF",
5
5
  "devDependencies": {
6
- "semantic-release": "^21.0.7"
6
+ "semantic-release": "^21.0.9"
7
7
  },
8
8
  "repository": {
9
9
  "type": "git",
@@ -51,6 +51,7 @@
51
51
  "http.base.path": "/services",
52
52
  "http.origin": "https://${domain1}",
53
53
  "http.path": "${http.base.path}/${name}",
54
+ "http.path.lonesome": "${http.path}",
54
55
  "install.base.dir": "/services/",
55
56
  "install.dir": "${install.base.dir}${name}${install.sub.dir}",
56
57
  "install.sub.dir": "/",
@@ -86,6 +87,19 @@
86
87
  "variant": "mf.linux.frontend",
87
88
  "nginx.location.trailer": " access_log off;\n"
88
89
  },
90
+ {
91
+ "requires": {
92
+ "properties": {
93
+ "frontend": true,
94
+ "static": true
95
+ }
96
+ },
97
+ "install.base.dir": "/srv/http/",
98
+ "http.base.path": "",
99
+ "variant": "mf.linux.frontend",
100
+ "groups": "static",
101
+ "description": "static content of ${name}"
102
+ },
89
103
  {
90
104
  "requires": {
91
105
  "properties": {
package/pkg/nginx.conf CHANGED
@@ -7,7 +7,7 @@ location {{http.path}}/assets {
7
7
  add_header alt-svc 'h3=":443";ma=7776000;persist=1';
8
8
  {{nginx.location.trailer}}}
9
9
 
10
- location {{http.path}} {
10
+ location {{http.path.lonesome}} {
11
11
  alias {{install.dir}};
12
12
  try_files $uri$args $uri$args/ {{http.path}}/index.html;
13
13
  brotli_static on;