Fix websocket configuration for posts service

This commit is contained in:
SrGooglo 2025-05-12 02:41:07 +00:00
parent 392e8c1d4b
commit add0f41186
2 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,7 @@
{ {
"name": "posts", "name": "posts",
"dependencies": { "dependencies": {
"linebridge": "^1.0.0-alpha.2", "linebridge": "^1.0.0-alpha.4",
"moment-timezone": "^0.5.45" "moment-timezone": "^0.5.45"
} }
} }

View File

@ -12,7 +12,10 @@ export default class API extends Server {
static refName = "posts" static refName = "posts"
static listenPort = process.env.HTTP_LISTEN_PORT ?? 3001 static listenPort = process.env.HTTP_LISTEN_PORT ?? 3001
static websockets = true static websockets = {
enabled: true,
path: "/posts",
}
static bypassCors = true static bypassCors = true
static useMiddlewares = ["logs"] static useMiddlewares = ["logs"]