mf-hosting-frontend 3.9.11 → 4.0.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.
- package/package.json +51 -51
- package/pkg/compress-hooks.sh +4 -4
- package/pkg/nginx-spa.conf +13 -13
- package/pkg/nginx-static.conf +12 -12
package/package.json
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mf-hosting-frontend",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"files": [
|
|
5
5
|
".releaserc.json",
|
|
6
6
|
"pkg/compress-hooks.sh",
|
|
7
7
|
"pkg/nginx-spa.conf",
|
|
8
8
|
"pkg/nginx-static.conf"
|
|
9
9
|
],
|
|
10
|
+
"packageManager": "npm@11.6.4+sha512.1118cab46a05a50aee6bff5b1b4fa1df18afff89d57465620a3518035026955db87c5bdf9d207b07b7487d99f2490d450cb774655ad63ec2cba7bf1d0ad25d45",
|
|
10
11
|
"main": ".releaserc.json",
|
|
11
12
|
"description": "hosting definitions of frontend projects @MF",
|
|
12
13
|
"keywords": [
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
"@semantic-release/exec": "^7.1.0",
|
|
19
20
|
"@semantic-release/github": "^12.0.2",
|
|
20
21
|
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
21
|
-
"semantic-release": "^25.0.
|
|
22
|
+
"semantic-release": "^25.0.3"
|
|
22
23
|
},
|
|
23
24
|
"repository": {
|
|
24
25
|
"type": "git",
|
|
@@ -39,12 +40,12 @@
|
|
|
39
40
|
"arch": {
|
|
40
41
|
"properties": {
|
|
41
42
|
"nginx": true,
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
43
|
+
"nginx_sites_dir": "/etc/nginx/sites/common/",
|
|
44
|
+
"nginx_content_dir": "/srv/http/",
|
|
45
|
+
"nginx_location_header": " brotli_static on;\n"
|
|
45
46
|
},
|
|
46
47
|
"dependencies": {
|
|
47
|
-
"nginx-mainline": ">=1.29.
|
|
48
|
+
"nginx-mainline": ">=1.29.4",
|
|
48
49
|
"node": "-",
|
|
49
50
|
"bun": "-"
|
|
50
51
|
}
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
"debian": {
|
|
53
54
|
"properties": {
|
|
54
55
|
"nginx": true,
|
|
55
|
-
"
|
|
56
|
+
"nginx_content_dir": "/var/www/html/"
|
|
56
57
|
},
|
|
57
58
|
"dependencies": {
|
|
58
59
|
"nginx": ">=1.22.1",
|
|
@@ -72,47 +73,47 @@
|
|
|
72
73
|
}
|
|
73
74
|
},
|
|
74
75
|
"content": {
|
|
75
|
-
"${
|
|
76
|
+
"${nginx_locations_dir}${nginx_location_category}/${name}.conf": "pkg/nginx-${nginx_type}.conf"
|
|
76
77
|
},
|
|
77
78
|
"vendor": "MF",
|
|
78
79
|
"groups": "services",
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
80
|
+
"csp_endpoint": "/services/csp/upload",
|
|
81
|
+
"csp_connect_src": "connect-src 'self' {{wss_origins}};",
|
|
82
|
+
"csp_style_src": "style-src 'self' 'unsafe-inline';",
|
|
83
|
+
"csp_script_src": "script-src 'self';",
|
|
84
|
+
"csp_script_src_elem": "",
|
|
85
|
+
"csp_default_src": "default-src 'self' data:;",
|
|
86
|
+
"csp_report_uri": "report-uri {{csp_endpoint}}",
|
|
87
|
+
"csp_header": "{{csp_connect_src}}{{csp_script_src}}{{csp_script_src_elem}}{{csp_style_src}}{{csp_default_src}}{{csp_report_uri}}",
|
|
87
88
|
"domain1": "mfelten.dynv6.net",
|
|
88
89
|
"domain2": "mfelten.dedyn.io",
|
|
89
90
|
"domain3": "mfelten.ddnss.de",
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
91
|
+
"html_base_href": "<base href=\"{{http_path}}/\"/>",
|
|
92
|
+
"http_api": "${http_origin}${http_api_path}",
|
|
93
|
+
"http_api_path": "${http_path}/api",
|
|
94
|
+
"http_base_path": "/services",
|
|
95
|
+
"http_origin": "https://${domain1}",
|
|
96
|
+
"http_path": "${http_base_path}/${name}",
|
|
97
|
+
"http_path_lonesome": "${http_path}",
|
|
98
|
+
"http_header_alt_svc": "'h3=\":443\";ma=86400;persist=1'",
|
|
99
|
+
"http_try_files_extra": "",
|
|
100
|
+
"install_base_dir": "/services/",
|
|
101
|
+
"install_dir": "${install_base_dir}${name}${install_sub_dir}",
|
|
102
|
+
"install_sub_dir": "/",
|
|
103
|
+
"journal_endpoint": "/services/journal",
|
|
104
|
+
"public_base_url": "https://${domain1}/",
|
|
104
105
|
"variant": "mf.linux.frontend",
|
|
105
|
-
"well-
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
106
|
+
"well-known_content_dir": "${nginx_content_dir}.well-known/",
|
|
107
|
+
"wss_api": "${wss_origin}${http_api_path}",
|
|
108
|
+
"wss_origin": "wss://${domain1}",
|
|
109
|
+
"wss_origins": "${wss_origin} wss://${domain2} wss://${domain3}",
|
|
110
|
+
"nginx_location_header": "",
|
|
111
|
+
"nginx_location_trailer": "",
|
|
112
|
+
"nginx_server_extra": "",
|
|
113
|
+
"nginx_locations_dir": "/etc/nginx/locations/",
|
|
114
|
+
"nginx_location_category": "common",
|
|
115
|
+
"nginx_sites_dir": "/etc/nginx/sites-available/",
|
|
116
|
+
"nginx_type": "spa"
|
|
116
117
|
},
|
|
117
118
|
{
|
|
118
119
|
"requires": {
|
|
@@ -129,13 +130,13 @@
|
|
|
129
130
|
"example": true
|
|
130
131
|
}
|
|
131
132
|
},
|
|
132
|
-
"
|
|
133
|
-
"
|
|
133
|
+
"install_base_dir": "/examples/",
|
|
134
|
+
"http_base_path": "/examples",
|
|
134
135
|
"groups": "examples",
|
|
135
136
|
"description": "example showing ${name} features in action",
|
|
136
137
|
"variant": "mf.linux.frontend",
|
|
137
|
-
"
|
|
138
|
-
"
|
|
138
|
+
"nginx_location_trailer": " access_log off;\n",
|
|
139
|
+
"nginx_location_category": "examples"
|
|
139
140
|
},
|
|
140
141
|
{
|
|
141
142
|
"requires": {
|
|
@@ -144,12 +145,12 @@
|
|
|
144
145
|
"static": true
|
|
145
146
|
}
|
|
146
147
|
},
|
|
147
|
-
"
|
|
148
|
-
"
|
|
148
|
+
"install_base_dir": "${nginx_content_dir}",
|
|
149
|
+
"http_base_path": "",
|
|
149
150
|
"variant": "mf.linux.frontend",
|
|
150
151
|
"groups": "static",
|
|
151
152
|
"description": "static content of ${name}",
|
|
152
|
-
"
|
|
153
|
+
"nginx_location_category": "static"
|
|
153
154
|
},
|
|
154
155
|
{
|
|
155
156
|
"requires": {
|
|
@@ -158,7 +159,7 @@
|
|
|
158
159
|
"mode": "development"
|
|
159
160
|
}
|
|
160
161
|
},
|
|
161
|
-
"
|
|
162
|
+
"http_path": "",
|
|
162
163
|
"variant": "mf.linux.frontend"
|
|
163
164
|
}
|
|
164
165
|
],
|
|
@@ -167,6 +168,5 @@
|
|
|
167
168
|
"arlac77/template-npm",
|
|
168
169
|
"arlac77/template-semantic-release"
|
|
169
170
|
]
|
|
170
|
-
}
|
|
171
|
-
"packageManager": "npm@11.6.3+sha512.4085a763162e0e3acd19a4e9d23ad3aa0978e501ccf947dd7233c12a689ae0bb0190763c4ef12366990056b34eec438903ffed38fde4fbd722a17c2a7407ee92"
|
|
171
|
+
}
|
|
172
172
|
}
|
package/pkg/compress-hooks.sh
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
|
|
2
2
|
post_install() {
|
|
3
|
-
(cd {{
|
|
3
|
+
(cd {{install_dir}} && find -size +500 -type f ! -name "*.gz" ! -name "*.br" ! -name "*.jpg" ! -name "*.png" ! -name "*.webp" -print0|xargs -0 -r brotli -f)
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
pre_upgrade() {
|
|
7
|
-
(cd {{
|
|
7
|
+
(cd {{install_dir}} && find -type f -name "*.br" -o -name "*.gz" -print0|xargs -0 -r rm)
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
post_upgrade() {
|
|
11
|
-
(cd {{
|
|
11
|
+
(cd {{install_dir}} && find -size +500 -type f ! -name "*.gz" ! -name "*.br" ! -name "*.jpg" ! -name "*.png" ! -name "*.webp" -print0|xargs -0 -r brotli -f)
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
pre_remove() {
|
|
15
|
-
(cd {{
|
|
15
|
+
(cd {{install_dir}} && find -type f -name "*.br" -o -name "*.gz" -print0|xargs -0 -r rm)
|
|
16
16
|
}
|
package/pkg/nginx-spa.conf
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
location {{
|
|
2
|
-
{{
|
|
1
|
+
location {{http_path}}/assets {
|
|
2
|
+
{{nginx_location_header}} alias {{install_dir}}assets/;
|
|
3
3
|
add_header X-Content-Type-Options nosniff;
|
|
4
|
-
add_header Content-Security-Policy "{{
|
|
4
|
+
add_header Content-Security-Policy "{{csp_header}}" always;
|
|
5
5
|
add_header Cache-Control "public,max-age=31536000,immutable";
|
|
6
|
-
add_header alt-svc {{
|
|
7
|
-
{{
|
|
6
|
+
add_header alt-svc {{http_header_alt_svc}};
|
|
7
|
+
{{nginx_location_trailer}}}
|
|
8
8
|
|
|
9
|
-
location {{
|
|
10
|
-
{{
|
|
11
|
-
try_files $uri$args $uri$args/ {{
|
|
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
12
|
add_header X-Content-Type-Options nosniff;
|
|
13
|
-
add_header Content-Security-Policy "{{
|
|
14
|
-
add_header Reporting-Endpoints "csp-endpoint='{{
|
|
13
|
+
add_header Content-Security-Policy "{{csp_header}}" always;
|
|
14
|
+
add_header Reporting-Endpoints "csp-endpoint='{{csp_endpoint}}'" always;
|
|
15
15
|
add_header Cache-Control "public,no-cache";
|
|
16
|
-
add_header alt-svc {{
|
|
17
|
-
{{
|
|
16
|
+
add_header alt-svc {{http_header_alt_svc}};
|
|
17
|
+
{{nginx_location_trailer}}}
|
|
18
18
|
|
|
19
|
-
{{
|
|
19
|
+
{{nginx_server_extra}}
|
package/pkg/nginx-static.conf
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
location {{
|
|
2
|
-
{{
|
|
1
|
+
location {{http_path}}/assets {
|
|
2
|
+
{{nginx_location_header}} alias {{install_dir}}assets/;
|
|
3
3
|
add_header X-Content-Type-Options nosniff;
|
|
4
|
-
add_header Content-Security-Policy "{{
|
|
4
|
+
add_header Content-Security-Policy "{{csp_header}}" always;
|
|
5
5
|
add_header Cache-Control "public,max-age=31536000,immutable";
|
|
6
|
-
add_header alt-svc {{
|
|
7
|
-
{{
|
|
6
|
+
add_header alt-svc {{http_header_alt_svc}};
|
|
7
|
+
{{nginx_location_trailer}}}
|
|
8
8
|
|
|
9
|
-
location {{
|
|
10
|
-
{{
|
|
9
|
+
location {{http_path_lonesome}} {
|
|
10
|
+
{{nginx_location_header}} alias {{install_dir}};
|
|
11
11
|
add_header X-Content-Type-Options nosniff;
|
|
12
|
-
add_header Content-Security-Policy "{{
|
|
13
|
-
add_header Reporting-Endpoints "csp-endpoint='{{
|
|
12
|
+
add_header Content-Security-Policy "{{csp_header}}" always;
|
|
13
|
+
add_header Reporting-Endpoints "csp-endpoint='{{csp_endpoint}}'" always;
|
|
14
14
|
add_header Cache-Control "public,no-cache";
|
|
15
|
-
add_header alt-svc {{
|
|
16
|
-
{{
|
|
15
|
+
add_header alt-svc {{http_header_alt_svc}};
|
|
16
|
+
{{nginx_location_trailer}}}
|
|
17
17
|
|
|
18
|
-
{{
|
|
18
|
+
{{nginx_server_extra}}
|