@rpcbase/server 0.162.0 → 0.163.0
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.
- package/database.js +1 -1
- package/express/session_middleware.js +1 -1
- package/package.json +1 -1
- package/queue/index.js +1 -1
package/database.js
CHANGED
|
@@ -24,7 +24,7 @@ if (typeof DATABASE_NAME !== "string") {
|
|
|
24
24
|
throw new Error("expected DATABASE_NAME to be a string")
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
const hostname = CONTAINER_MODE === "native" ? "
|
|
27
|
+
const hostname = CONTAINER_MODE === "native" ? "127.0.0.1" : "database"
|
|
28
28
|
|
|
29
29
|
const mongo_url = `mongodb://${hostname}:${DATABASE_PORT}/${DATABASE_NAME}?directConnection=true&replicaSet=rs0`
|
|
30
30
|
|
|
@@ -19,7 +19,7 @@ if (typeof SESSION_STORE_PORT === "string" && !validator.isPort(SESSION_STORE_PO
|
|
|
19
19
|
throw new Error("expected SESSION_STORE_PORT to be a valid port number")
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
const hostname = CONTAINER_MODE === "native" ? "
|
|
22
|
+
const hostname = CONTAINER_MODE === "native" ? "127.0.0.1" : "session-store"
|
|
23
23
|
|
|
24
24
|
console.log("session-store hostname", hostname, "port", SESSION_STORE_PORT)
|
|
25
25
|
|
package/package.json
CHANGED
package/queue/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
const Queue = require("bull")
|
|
3
3
|
|
|
4
4
|
const {WORKER_QUEUE_PORT, CONTAINER_MODE} = process.env
|
|
5
|
-
const hostname = CONTAINER_MODE === "native" ? "
|
|
5
|
+
const hostname = CONTAINER_MODE === "native" ? "127.0.0.1" : "worker-queue"
|
|
6
6
|
const worker_queue_url = `redis://${hostname}:${WORKER_QUEUE_PORT}`
|
|
7
7
|
|
|
8
8
|
const tasks_list = Object.create(null)
|