mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
Fix websocket configuration for posts
service
This commit is contained in:
parent
392e8c1d4b
commit
add0f41186
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user