Add env variable for session secret
This commit is contained in:
parent
97ec6ce9bc
commit
53dee63a76
@ -26,6 +26,7 @@ As usual in Hubot, you can add all config as environment variables.
|
||||
| `KREDITS_PROVIDER_URL` | Ethereum JSON-RPC URL (default: `http://localhost:7545`) |
|
||||
| `KREDITS_WEB_URL` | URL of the Kredits Web app (default: `https://kredits.kosmos.org`) |
|
||||
| `KREDITS_DAO_ADDRESS` | DAO Kernel address |
|
||||
| `SESSION_SECRET` | Secret used to sign the Session ID |
|
||||
|
||||
## Integrations
|
||||
|
||||
|
@ -198,7 +198,7 @@ module.exports = async function(robot, kredits) {
|
||||
}
|
||||
};
|
||||
|
||||
robot.router.use(session({secret: 'grant'}));
|
||||
robot.router.use(session({ secret: process.env.SESSION_SECRET || 'grant' }));
|
||||
robot.router.use('/kredits/signup', grant(grantConfig));
|
||||
|
||||
robot.router.get('/kredits/signup/github', async (req, res) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user