feat: replace onebox ingress with SmartProxy
This commit is contained in:
@@ -19,7 +19,7 @@ export class NetworkHandler {
|
||||
redis: 6379,
|
||||
postgresql: 5432,
|
||||
rabbitmq: 5672,
|
||||
caddy: 80,
|
||||
smartproxy: 80,
|
||||
clickhouse: 8123,
|
||||
mariadb: 3306,
|
||||
};
|
||||
@@ -85,7 +85,7 @@ export class NetworkHandler {
|
||||
async (dataArg) => {
|
||||
await requireAdminIdentity(this.opsServerRef.adminHandler, dataArg);
|
||||
const proxyStatus = this.opsServerRef.oneboxRef.reverseProxy.getStatus() as any;
|
||||
const logReceiverStats = this.opsServerRef.oneboxRef.caddyLogReceiver.getStats();
|
||||
const logReceiverStats = this.opsServerRef.oneboxRef.proxyLogReceiver.getStats();
|
||||
|
||||
return {
|
||||
stats: {
|
||||
@@ -115,7 +115,7 @@ export class NetworkHandler {
|
||||
'getTrafficStats',
|
||||
async (dataArg) => {
|
||||
await requireAdminIdentity(this.opsServerRef.adminHandler, dataArg);
|
||||
const trafficStats = this.opsServerRef.oneboxRef.caddyLogReceiver.getTrafficStats(60);
|
||||
const trafficStats = this.opsServerRef.oneboxRef.proxyLogReceiver.getTrafficStats(60);
|
||||
return { stats: trafficStats };
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user