feat: get HTTP session secret from WEBSSH_SESSION_SECRET env if available.

This commit is contained in:
Bill Church 2024-08-21 17:44:15 +00:00
parent cd56b3c51f
commit 17bc82db85
No known key found for this signature in database

View file

@ -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"
} }
} }