Ruzihm / coin-chance

An open source crypto currency play-and-invest gambling site
GNU Affero General Public License v3.0
34 stars 23 forks source link

Secret option required for sessions... #24

Open fedaykinofdune opened 8 years ago

fedaykinofdune commented 8 years ago

Getting this error when trying to access the site, but I'm fairly sure that it's because I don't have the following options configured properly for redis.....

exports.SESSION_STORE_TYPE = "REDIS"; exports.SESSION_STORE_OPTIONS = {}; <--could have sworn something was here by default in earlier versions... Don't remember having to configure that... I'm pretty sure I have my .bashrc exports set properly.. Took a lot of fuss to get the mongodb node module to behave.

The app fires up like its supposed to now, this is what I get in the browser when I try to log in. Will include the console stuff if you need it.

500 Error: secret option required for sessions at session (/home/coinchance/coin/node_modules/express-session/index.js:167:12) at Layer.handle as handle_request at trim_prefix (/home/coinchance/coin/node_modules/express/lib/router/index.js:312:13) at /home/coinchance/coin/node_modules/express/lib/router/index.js:280:7 at Function.process_params (/home/coinchance/coin/node_modules/express/lib/router/index.js:330:12) at next (/home/coinchance/coin/node_modules/express/lib/router/index.js:271:10) at cookieParser (/home/coinchance/coin/node_modules/cookie-parser/index.js:56:14) at Layer.handle as handle_request at trim_prefix (/home/coinchance/coin/node_modules/express/lib/router/index.js:312:13) at /home/coinchance/coin/node_modules/express/lib/router/index.js:280:7 at Function.process_params (/home/coinchance/coin/node_modules/express/lib/router/index.js:330:12) at next (/home/coinchance/coin/node_modules/express/lib/router/index.js:271:10) at methodOverride (/home/coinchance/coin/node_modules/method-override/index.js:58:5) at Layer.handle as handle_request at trim_prefix (/home/coinchance/coin/node_modules/express/lib/router/index.js:312:13) at /home/coinchance/coin/node_modules/express/lib/router/index.js:280:7