/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2019 AcceleratXR, Inc. All rights reserved. /////////////////////////////////////////////////////////////////////////////// const packageInfo = require("../package.json"); const conf = require("nconf") .argv() .env({ separator: "__", parseValues: true, }); conf.defaults({ service_name: packageInfo.name, version: packageInfo.version, port: 3080, cookie_secret: "COOKIE_SECRET", cors: { origin: ["http://localhost:3000"], }, auth: { // The default PassportJS authentication strategy to use strategy: "JWTStrategy", // The password to be used when verifying authentication tokens password: "MyPasswordIsSecure", options: { //"algorithm": "HS256", expiresIn: "7 days", audience: "mydomain.com", issuer: "api.mydomain.com", }, }, jobs: { defaultSchedule: "* * * * * *", }, session: { secret: "SESSION_SECRET", }, }); export default conf;