mf-hosting-frontend 3.8.3 → 3.9.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 +5 -4
  2. package/pkg/nginx.conf +0 -19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mf-hosting-frontend",
3
- "version": "3.8.3",
3
+ "version": "3.9.0",
4
4
  "files": [
5
5
  ".releaserc.json",
6
6
  "pkg/compress-hooks.sh",
@@ -43,7 +43,7 @@
43
43
  "nginx.location.header": " brotli_static on;\n"
44
44
  },
45
45
  "dependencies": {
46
- "nginx-mainline": ">=1.27.2",
46
+ "nginx-mainline": ">=1.27.3",
47
47
  "node": "-",
48
48
  "bun": "-"
49
49
  }
@@ -71,7 +71,7 @@
71
71
  }
72
72
  },
73
73
  "content": {
74
- "${nginx.locations.dir}${nginx.location.category}/${name}.conf": "pkg/nginx.conf"
74
+ "${nginx.locations.dir}${nginx.location.category}/${name}.conf": "pkg/nginx-${nginx.type}.conf"
75
75
  },
76
76
  "vendor": "MF",
77
77
  "groups": "services",
@@ -110,7 +110,8 @@
110
110
  "nginx.server.extra": "",
111
111
  "nginx.locations.dir": "/etc/nginx/locations/",
112
112
  "nginx.location.category": "common",
113
- "nginx.sites.dir": "/etc/nginx/sites-available/"
113
+ "nginx.sites.dir": "/etc/nginx/sites-available/",
114
+ "nginx.type": "spa"
114
115
  },
115
116
  {
116
117
  "requires": {
package/pkg/nginx.conf DELETED
@@ -1,19 +0,0 @@
1
- location {{http.path}}/assets {
2
- {{nginx.location.header}} alias {{install.dir}}assets/;
3
- add_header X-Content-Type-Options nosniff;
4
- add_header Content-Security-Policy "{{csp.header}}" always;
5
- add_header Cache-Control "public,max-age=31536000,immutable";
6
- add_header alt-svc {{http.header.alt-svc}};
7
- {{nginx.location.trailer}}}
8
-
9
- location {{http.path.lonesome}} {
10
- {{nginx.location.header}} alias {{install.dir}};
11
- try_files $uri$args $uri$args/ {{http.path}}/index.html{{http.try_files.extra}};
12
- add_header X-Content-Type-Options nosniff;
13
- add_header Content-Security-Policy "{{csp.header}}" always;
14
- add_header Reporting-Endpoints "csp-endpoint='{{csp.endpoint}}'" always;
15
- add_header Cache-Control "public,no-cache";
16
- add_header alt-svc {{http.header.alt-svc}};
17
- {{nginx.location.trailer}}}
18
-
19
- {{nginx.server.extra}}