'use strict';

const crypto = require('crypto');

const fs = require('fs');
const path = require('path');
const _ = require('lodash');

module.exports = () => {
  const tmpl = fs.readFileSync(path.join(__dirname, `admin-config.template`));
  const compile = _.template(tmpl);

  return compile({
    adminJwtToken: crypto.randomBytes(16).toString('hex'),
  });
};
