mf-hosting-frontend 3.9.12 → 4.0.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 +49 -49
- 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,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mf-hosting-frontend",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"files": [
|
|
5
5
|
".releaserc.json",
|
|
6
6
|
"pkg/compress-hooks.sh",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"@semantic-release/exec": "^7.1.0",
|
|
20
20
|
"@semantic-release/github": "^12.0.2",
|
|
21
21
|
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
22
|
-
"semantic-release": "^25.0.
|
|
22
|
+
"semantic-release": "^25.0.3"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"arch": {
|
|
41
41
|
"properties": {
|
|
42
42
|
"nginx": true,
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
43
|
+
"nginx_sites_dir": "/etc/nginx/sites/common/",
|
|
44
|
+
"nginx_content_dir": "/srv/http/",
|
|
45
|
+
"nginx_location_header": " brotli_static on;\n"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"nginx-mainline": ">=1.29.
|
|
48
|
+
"nginx-mainline": ">=1.29.5",
|
|
49
49
|
"node": "-",
|
|
50
50
|
"bun": "-"
|
|
51
51
|
}
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"debian": {
|
|
54
54
|
"properties": {
|
|
55
55
|
"nginx": true,
|
|
56
|
-
"
|
|
56
|
+
"nginx_content_dir": "/var/www/html/"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"nginx": ">=1.22.1",
|
|
@@ -73,47 +73,47 @@
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
"content": {
|
|
76
|
-
"${
|
|
76
|
+
"${nginx_locations_dir}${nginx_location_category}/${name}.conf": "pkg/nginx-${nginx_type}.conf"
|
|
77
77
|
},
|
|
78
78
|
"vendor": "MF",
|
|
79
79
|
"groups": "services",
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
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}}",
|
|
88
88
|
"domain1": "mfelten.dynv6.net",
|
|
89
89
|
"domain2": "mfelten.dedyn.io",
|
|
90
90
|
"domain3": "mfelten.ddnss.de",
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
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}/",
|
|
105
105
|
"variant": "mf.linux.frontend",
|
|
106
|
-
"well-
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
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"
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
119
|
"requires": {
|
|
@@ -130,13 +130,13 @@
|
|
|
130
130
|
"example": true
|
|
131
131
|
}
|
|
132
132
|
},
|
|
133
|
-
"
|
|
134
|
-
"
|
|
133
|
+
"install_base_dir": "/examples/",
|
|
134
|
+
"http_base_path": "/examples",
|
|
135
135
|
"groups": "examples",
|
|
136
136
|
"description": "example showing ${name} features in action",
|
|
137
137
|
"variant": "mf.linux.frontend",
|
|
138
|
-
"
|
|
139
|
-
"
|
|
138
|
+
"nginx_location_trailer": " access_log off;\n",
|
|
139
|
+
"nginx_location_category": "examples"
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
"requires": {
|
|
@@ -145,12 +145,12 @@
|
|
|
145
145
|
"static": true
|
|
146
146
|
}
|
|
147
147
|
},
|
|
148
|
-
"
|
|
149
|
-
"
|
|
148
|
+
"install_base_dir": "${nginx_content_dir}",
|
|
149
|
+
"http_base_path": "",
|
|
150
150
|
"variant": "mf.linux.frontend",
|
|
151
151
|
"groups": "static",
|
|
152
152
|
"description": "static content of ${name}",
|
|
153
|
-
"
|
|
153
|
+
"nginx_location_category": "static"
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
"requires": {
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
"mode": "development"
|
|
160
160
|
}
|
|
161
161
|
},
|
|
162
|
-
"
|
|
162
|
+
"http_path": "",
|
|
163
163
|
"variant": "mf.linux.frontend"
|
|
164
164
|
}
|
|
165
165
|
],
|
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}}
|