feat: get HTTP session secret from WEBSSH_SESSION_SECRET
env if available.
This commit is contained in:
parent
cd56b3c51f
commit
17bc82db85
1 changed files with 1 additions and 1 deletions
|
@ -62,7 +62,7 @@ const defaultConfig = {
|
||||||
compress: ["none", "zlib@openssh.com", "zlib"]
|
compress: ["none", "zlib@openssh.com", "zlib"]
|
||||||
},
|
},
|
||||||
session: {
|
session: {
|
||||||
secret: generateSecureSecret(),
|
secret: process.env.WEBSSH_SESSION_SECRET || generateSecureSecret(),
|
||||||
name: "webssh2.sid"
|
name: "webssh2.sid"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue