Spaces:
Running
Running
Download config/env.js from 4send/messenger: direct link, hf CLI and curl.
- Browser
- Download file 488 Bytes
-
https://huggingface.co/spaces/4send/messenger/resolve/main/config/env.js
- Command line
-
hf download hf://spaces/4send/messenger/config/env.js
-
curl -L -o env.js https://huggingface.co/spaces/4send/messenger/resolve/main/config/env.js
488 Bytes
| const crypto = require('crypto'); | |
| const JWT_SECRET = process.env.JWT_SECRET; | |
| const SECURE_SALT = process.env.SECURE_SALT; | |
| const ENCRYPTION_KEY = Buffer.from(process.env.ENCRYPTION_KEY || '', 'hex'); | |
| if (ENCRYPTION_KEY.length !== 32) { | |
| throw new Error('ENCRYPTION_KEY must be a 32-byte (64 hex chars) value'); | |
| } | |
| const SESSION_SECRET = process.env.SESSION_SECRET || crypto.randomBytes(64).toString('hex'); | |
| module.exports = { JWT_SECRET, SECURE_SALT, ENCRYPTION_KEY, SESSION_SECRET }; | |