<commit_before>import path from 'path';
import { Config, helpers } from 'makeen';
import randomstring from 'randomstring';

const rootDir = path.resolve(__dirname, '../../');
const jwtSecret = randomstring.generate();

Config.merge({
  rootDir,
  isDev: process.env.NODE_ENV === 'development',
  port: 3000,
  sentry: {
    dsn: '',
  },
  secrets: {
    jwt: jwtSecret,
  },
  paths: {
    web: path.resolve(rootDir, './web'),
  },
  session: {
    secret: '',
    name: 'sessionId',
    resave: false,
    saveUninitialized: false,
  },
  morgan: {
    format: 'dev',
  },
  maxUploadSize: '20mb',
  modules: {
    storage: {
      connection: {
        db: 'makeen-boilerplate',
        host: 'localhost',
        port: 27017,
      },
    },
    user: {
      jwtSecret,
      jwtConfig: {
        expiresIn: '1d',
      },
      mockUserMiddlewarePivot: {
        before: 'isMethod',
      },
      passportMiddlewarePivot: 'cookieParser',
      mockUserConfig: {
        enabled: true,
        path: '/graphql',
        params: {},
      },
      passportConfig: {
        enabled: false,
      },
    },
    mailer: {
      transport: {
        jsonTransport: true,
      },<commit_msg>[makeen-boilerplate] adding missing configuration<commit_after>import path from 'path';
import { Config, helpers } from 'makeen';
import randomstring from 'randomstring';

const rootDir = path.resolve(__dirname, '../../');
const jwtSecret = randomstring.generate();

Config.merge({
  rootDir,
  rootURL: 'http://localhost:3000',
  isDev: process.env.NODE_ENV === 'development',
  port: 3000,
  sentry: {
    dsn: '',
  },
  secrets: {
    jwt: jwtSecret,
  },
  paths: {
    web: path.resolve(rootDir, './web'),
  },
  session: {
    secret: '',
    name: 'sessionId',
    resave: false,
    saveUninitialized: false,
  },
  morgan: {
    format: 'dev',
  },
  maxUploadSize: '20mb',
  modules: {
    storage: {
      connection: {
        db: 'makeen-boilerplate',
        host: 'localhost',
        port: 27017,
      },
    },
    user: {
      jwtSecret,
      jwtConfig: {
        expiresIn: '1d',
      },
      mockUserMiddlewarePivot: {
        before: 'isMethod',
      },
      passportMiddlewarePivot: 'cookieParser',
      mockUserConfig: {
        enabled: true,
        path: '/',
        params: {
          email: '',
        },
      },
      passportConfig: {
        enabled: false,
      },
      rootURL: 'http://localhost:3000',
    },
    mailer: {
      transport: {
        jsonTransport: true,
      },
{'fraction_non_alphanumeric': 0.1519238397461325, 'fraction_numerical': 0.012693375644585482, 'mean_word_length': 2.144638403990025, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '521366', 'n_tokens_mistral': 848, 'n_tokens_neox': 827, 'n_words': 167}