@remnawave/node-contract 0.3.3 → 0.3.4
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.
|
@@ -4,7 +4,6 @@ export declare const XRAY_DEFAULT_POLICY_MODEL: {
|
|
|
4
4
|
readonly '0': {
|
|
5
5
|
readonly statsUserUplink: true;
|
|
6
6
|
readonly statsUserDownlink: true;
|
|
7
|
-
readonly statsUserOnline: true;
|
|
8
7
|
};
|
|
9
8
|
};
|
|
10
9
|
readonly system: {
|
|
@@ -21,25 +20,21 @@ export declare const XRAY_DEFAULT_STATS_MODEL: {
|
|
|
21
20
|
export declare const XRAY_DEFAULT_API_MODEL: {
|
|
22
21
|
readonly api: {
|
|
23
22
|
readonly services: readonly ["HandlerService", "StatsService", "LoggerService"];
|
|
24
|
-
readonly
|
|
25
|
-
readonly tag: "API";
|
|
23
|
+
readonly tag: "api";
|
|
26
24
|
};
|
|
27
|
-
readonly metrics: {
|
|
28
|
-
readonly tag: "metrics_out";
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
export declare const XRAY_ROUTING_RULES_MODEL: {
|
|
32
|
-
readonly type: "field";
|
|
33
|
-
readonly inboundTag: readonly ["metrics_in"];
|
|
34
|
-
readonly outboundTag: "metrics_out";
|
|
35
25
|
};
|
|
36
26
|
export declare const XRAY_API_INBOUND_MODEL: {
|
|
27
|
+
readonly tag: "api";
|
|
28
|
+
readonly port: 61000;
|
|
37
29
|
readonly listen: "127.0.0.1";
|
|
38
|
-
readonly port: 61002;
|
|
39
30
|
readonly protocol: "dokodemo-door";
|
|
40
31
|
readonly settings: {
|
|
41
|
-
readonly address: "
|
|
32
|
+
readonly address: "127.0.0.1";
|
|
42
33
|
};
|
|
43
|
-
|
|
34
|
+
};
|
|
35
|
+
export declare const XRAY_ROUTING_RULES_MODEL: {
|
|
36
|
+
readonly type: "field";
|
|
37
|
+
readonly inboundTag: readonly ["api"];
|
|
38
|
+
readonly outboundTag: "api";
|
|
44
39
|
};
|
|
45
40
|
//# sourceMappingURL=stats.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../constants/xray/stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../constants/xray/stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;CAe5B,CAAC;AAEX,eAAO,MAAM,wBAAwB;;CAE3B,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;CAKzB,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;CAQzB,CAAC;AAEX,eAAO,MAAM,wBAAwB;;;;CAI3B,CAAC"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.XRAY_ROUTING_RULES_MODEL = exports.XRAY_API_INBOUND_MODEL = exports.XRAY_DEFAULT_API_MODEL = exports.XRAY_DEFAULT_STATS_MODEL = exports.XRAY_DEFAULT_POLICY_MODEL = void 0;
|
|
4
4
|
exports.XRAY_DEFAULT_POLICY_MODEL = {
|
|
5
5
|
policy: {
|
|
6
6
|
levels: {
|
|
7
7
|
'0': {
|
|
8
8
|
statsUserUplink: true,
|
|
9
9
|
statsUserDownlink: true,
|
|
10
|
-
statsUserOnline: true,
|
|
11
10
|
},
|
|
12
11
|
},
|
|
13
12
|
system: {
|
|
@@ -24,24 +23,20 @@ exports.XRAY_DEFAULT_STATS_MODEL = {
|
|
|
24
23
|
exports.XRAY_DEFAULT_API_MODEL = {
|
|
25
24
|
api: {
|
|
26
25
|
services: ['HandlerService', 'StatsService', 'LoggerService'],
|
|
27
|
-
|
|
28
|
-
tag: 'API',
|
|
26
|
+
tag: 'api',
|
|
29
27
|
},
|
|
30
|
-
metrics: {
|
|
31
|
-
tag: 'metrics_out',
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
exports.XRAY_ROUTING_RULES_MODEL = {
|
|
35
|
-
type: 'field',
|
|
36
|
-
inboundTag: ['metrics_in'],
|
|
37
|
-
outboundTag: 'metrics_out',
|
|
38
28
|
};
|
|
39
29
|
exports.XRAY_API_INBOUND_MODEL = {
|
|
30
|
+
tag: 'api',
|
|
31
|
+
port: 61000,
|
|
40
32
|
listen: '127.0.0.1',
|
|
41
|
-
port: 61002,
|
|
42
33
|
protocol: 'dokodemo-door',
|
|
43
34
|
settings: {
|
|
44
|
-
address: '
|
|
35
|
+
address: '127.0.0.1',
|
|
45
36
|
},
|
|
46
|
-
|
|
37
|
+
};
|
|
38
|
+
exports.XRAY_ROUTING_RULES_MODEL = {
|
|
39
|
+
type: 'field',
|
|
40
|
+
inboundTag: ['api'],
|
|
41
|
+
outboundTag: 'api',
|
|
47
42
|
};
|