All files / server/src/config defaults.js

100% Statements 3/3
100% Branches 0/0
100% Functions 0/0
100% Lines 3/3
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 211x 1x     1x                                
const buffer = require('crypto').randomBytes(60);
const token = buffer.toString('base64').replace(/\//g,'_').replace(/\+/g,'-');
 
// Default configuration for server
module.exports = {
 
  // Public variables - should be documented quite well
  port: 3000,
  engine: 'pug',
  public: 'public',
  secret: 'secret-' + token,
 
 
  // Dev variables - not part of the official API
  // Show extra info on the terminal; should depend on another variable
  verbose: false,
 
  // Avoid giving clues to server tech
  'x-powered-by': false
};