mf-hosting 2.2.0 → 2.4.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 +10 -4
- package/pkg/nginx.conf +4 -2
- package/pkg/systemd.service +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mf-hosting",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"files": [
|
|
5
5
|
".releaserc.json",
|
|
6
6
|
"pkg/hooks.sh",
|
|
@@ -90,6 +90,7 @@
|
|
|
90
90
|
"aarch64"
|
|
91
91
|
],
|
|
92
92
|
"backup.config.dir": "/usr/lib/backup.d/",
|
|
93
|
+
"backup.lib.dir": "/usr/lib/backup.d/",
|
|
93
94
|
"config.dir": "/etc/${name}/",
|
|
94
95
|
"http.api": "${http.origin}${http.api.path}",
|
|
95
96
|
"http.api.path": "${http.path}/api",
|
|
@@ -100,7 +101,6 @@
|
|
|
100
101
|
"install.dir": "${install.base.dir}${name}${install.sub.dir}",
|
|
101
102
|
"install.sub.dir": "/",
|
|
102
103
|
"journal.endpoint": "/services/journal",
|
|
103
|
-
"nginx.sites.dir": "/etc/nginx/sites/common/",
|
|
104
104
|
"os.group": "${name}",
|
|
105
105
|
"os.user": "${name}",
|
|
106
106
|
"polkit.rules.dir": "/etc/polkit-1/rules.d/",
|
|
@@ -110,6 +110,9 @@
|
|
|
110
110
|
"socket.http.group": "http",
|
|
111
111
|
"socket.http.user": "http",
|
|
112
112
|
"systemd.unit.dir": "/usr/lib/systemd/system/",
|
|
113
|
+
"systemd.WantedBy": "multi-user.target",
|
|
114
|
+
"systemd.Wants": "network-online.target",
|
|
115
|
+
"systemd.After": "network-online.target",
|
|
113
116
|
"sysusers.config.dir": "/usr/lib/sysusers.d/",
|
|
114
117
|
"tmpfiles.config.dir": "/usr/lib/tmpfiles.d/",
|
|
115
118
|
"var.dir": "/var/lib/${name}/",
|
|
@@ -117,10 +120,13 @@
|
|
|
117
120
|
"well-known.content.dir": "/srv/http/.well-known/",
|
|
118
121
|
"wss.api": "${wss.origin}${http.api.path}",
|
|
119
122
|
"wss.origin": "${http.origin}",
|
|
120
|
-
"backup.lib.dir": "/usr/lib/backup.d/",
|
|
121
123
|
"node.exe": "/usr/bin/node",
|
|
122
124
|
"bun.exe": "/usr/bin/bun",
|
|
123
|
-
"nginx.
|
|
125
|
+
"nginx.sites.dir": "/etc/nginx/sites/common/",
|
|
126
|
+
"nginx.location.trailer": "",
|
|
127
|
+
"nginx.server.extra": "",
|
|
128
|
+
"csp.header": "",
|
|
129
|
+
"cache-control.header": "private,no-store"
|
|
124
130
|
},
|
|
125
131
|
{
|
|
126
132
|
"requires": {
|
package/pkg/nginx.conf
CHANGED
|
@@ -11,6 +11,8 @@ location {{http.path}} {
|
|
|
11
11
|
|
|
12
12
|
add_header X-Content-Type-Options nosniff;
|
|
13
13
|
add_header Content-Security-Policy "{{csp.header}}" always;
|
|
14
|
-
add_header Cache-Control "
|
|
15
|
-
add_header alt-svc 'h3=":443";ma=
|
|
14
|
+
add_header Cache-Control "{{cache-control.header}}";
|
|
15
|
+
add_header alt-svc 'h3=":443";ma=86400;persist=1';
|
|
16
16
|
{{nginx.location.trailer}}}
|
|
17
|
+
|
|
18
|
+
{{nginx.server.extra}}
|
package/pkg/systemd.service
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[Unit]
|
|
2
2
|
Description={{description}}
|
|
3
|
-
Wants=
|
|
4
|
-
After=
|
|
3
|
+
Wants={{systemd.Wants}}
|
|
4
|
+
After={{systemd.After}}
|
|
5
5
|
StopWhenUnneeded=true
|
|
6
6
|
|
|
7
7
|
[Service]
|
|
@@ -52,4 +52,4 @@ ProtectProc=noaccess
|
|
|
52
52
|
SystemCallErrorNumber=EPERM
|
|
53
53
|
|
|
54
54
|
[Install]
|
|
55
|
-
WantedBy=
|
|
55
|
+
WantedBy={{systemd.WantedBy}}
|