@rpcbase/server 0.241.0 → 0.242.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/cli/run_docker.js
CHANGED
|
@@ -42,6 +42,8 @@ const run_docker = async(infrastructure_dir, proj_prefix, args) => {
|
|
|
42
42
|
ps_env.RB_SESSION_STORE = "yes"
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
console.log("SERVER START WITH SESSIONS DOCKER")
|
|
46
|
+
|
|
45
47
|
// WARNING: blocks the process
|
|
46
48
|
// this is the only way to have docker-compose shut down gracefully
|
|
47
49
|
execSync(`${cmd} ${cmd_args.join(" ")}`, {
|
package/package.json
CHANGED
package/src/sessions/index.js
CHANGED
|
@@ -7,6 +7,8 @@ const is_development = process.env.NODE_ENV === "development"
|
|
|
7
7
|
module.exports = (app) => {
|
|
8
8
|
const has_session_store = process.env.RB_SESSION_STORE === "yes"
|
|
9
9
|
|
|
10
|
+
console.log("WOWOWOW", process.env)
|
|
11
|
+
|
|
10
12
|
if (has_session_store) {
|
|
11
13
|
console.log("using", pc.bold(pc.green("SESSION STORE")))
|
|
12
14
|
|
|
@@ -8,7 +8,7 @@ const warning_proxy_middleware = (req, res, next) => {
|
|
|
8
8
|
const {host} = req.headers
|
|
9
9
|
|
|
10
10
|
if (!suppress_warning && host.startsWith("localhost:")) {
|
|
11
|
-
console.warn("are you running with the proxy address ? you shouldn't be using localhost when you are running the app with the reverse
|
|
11
|
+
console.warn("are you running with the proxy address ? you shouldn't be using localhost when you are running the app with the reverse proxyy22")
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
next()
|