mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
Remove WebSocket logging and fix object property assignment
This commit is contained in:
parent
652cd747b1
commit
3753c8eae0
@ -6,6 +6,7 @@ import defaults from "linebridge/dist/defaults"
|
|||||||
|
|
||||||
const localNginxBinary = path.resolve(process.cwd(), "nginx-bin")
|
const localNginxBinary = path.resolve(process.cwd(), "nginx-bin")
|
||||||
const serverPkg = require("../../../package.json")
|
const serverPkg = require("../../../package.json")
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NginxManager - Optimized version that batches configurations
|
* NginxManager - Optimized version that batches configurations
|
||||||
* Waits for all services to register before applying configuration
|
* Waits for all services to register before applying configuration
|
||||||
@ -253,7 +254,7 @@ http {
|
|||||||
|
|
||||||
if (debugFlag) {
|
if (debugFlag) {
|
||||||
console.log(
|
console.log(
|
||||||
`🔍 Registering route for [${serviceId}]: ${normalizedPath} -> ${target} (${websocket ? "WebSocket" : "HTTP"})`,
|
`🔍 Registering route for [${serviceId}]: ${normalizedPath} -> ${target}`,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -261,8 +262,8 @@ http {
|
|||||||
const effectivePathRewrite = pathRewrite || {}
|
const effectivePathRewrite = pathRewrite || {}
|
||||||
|
|
||||||
this.routes.set(normalizedPath, {
|
this.routes.set(normalizedPath, {
|
||||||
serviceId,
|
serviceId: serviceId,
|
||||||
target,
|
target: target,
|
||||||
pathRewrite: effectivePathRewrite,
|
pathRewrite: effectivePathRewrite,
|
||||||
websocket: !!websocket,
|
websocket: !!websocket,
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user