pmcf 1.91.0 → 1.91.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "1.91.0",
3
+ "version": "1.91.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/cluster.mjs CHANGED
@@ -130,7 +130,7 @@ export class Cluster extends Host {
130
130
  cfg.push("}");
131
131
  cfg.push("");
132
132
 
133
- for (const service of cluster.findServices({ type: "http|dns|smtp" })) {
133
+ for (const service of cluster.findServices({ type: "http" })) {
134
134
  cfg.push(`virtual_server ${cluster.rawAddress} ${service.port} {`);
135
135
  cfg.push(` delay_loop ${cluster.checkInterval}`);
136
136
  cfg.push(" lb_algo wlc");
package/src/service.mjs CHANGED
@@ -35,7 +35,22 @@ const ServiceTypes = {
35
35
  ssh: { protocol: "tcp", port: 22, tls: false },
36
36
  imap: { protocol: "tcp", port: 143, tls: false },
37
37
  imaps: { protocol: "tcp", port: 993, tls: true },
38
- dhcp: { tls: false }
38
+ dhcp: { tls: false },
39
+ smb: { protocol: "tcp", port: 445, tls: false },
40
+ timemachine: {
41
+ type: "adisk",
42
+ protocol: "tcp",
43
+ tls: false,
44
+ dnsRecord: {
45
+ type: "TXT",
46
+ parameters: {
47
+ sys: "waMa=0",
48
+ adVF: "0x100",
49
+ dk0: "adVN=MF-TM-999",
50
+ // adVF: "0x82"
51
+ }
52
+ }
53
+ }
39
54
  };
40
55
 
41
56
  const ServiceTypeDefinition = {
@@ -197,8 +212,7 @@ export class Service extends Base {
197
212
  return ServiceTypes[this.type]?.tls || false;
198
213
  }
199
214
 
200
- get systemdServices()
201
- {
215
+ get systemdServices() {
202
216
  return this.#systemd;
203
217
  }
204
218