Skip to content
Snippets Groups Projects
Select Git revision
  • 242bbfd7517d04cdad51cf563326cfff7750e4c2
  • master default protected
  • v1.2.12
  • ctc2019
  • v1.1.11
  • v1.1.10
  • v1.1.8
  • v1.1.4
  • v1.0.9
  • v1.0.3
  • v1.0.2
11 results

config.js

Blame
  • user avatar
    ac 20 authored
    940e13dd
    History
    config.js 1.21 KiB
    // config.js leverjs server configuration settings
    //
    // you should be able to edit this file and have updates take effect even if server is 
    // running
    //
    // you can keep git from updating this file by issuing the following:
    //       git update-index --skip-worktree ./leverjs/config.js
    var config={};
    
    config.jwksUri=`https://leverjs.auth0.com/.well-known/jwks.json`;
    config.aud= '{https://leverjs.auth0.com/api/v2/}';
    config.issuer= `https://leverjs.auth0.com/`;
    // pi is case insensitive
    config.defaultPI= 'cohen';
    // other pi( case insensitive) matches portions of server paths with pi field (set on auth0.com user property)
    // here, steve will be authorized to edit any url that contains '/path/To/StevesStuff'
    // important -- if you have somewhere else in your leverjs folder tree with that path, steve will have
    // access there as well. you the man steve!
    config.otherPI=[ ['/path/To/StevesStuff/','steve'], ];
    config.debugMatlab=false;
    // set logLevel to 0 to shut off matlab chatter from child procs
    // set logLevel to 1-2 to see high level matlab chatter
    // set logLevel to 3-5 to see full debug spew
    config.logLevel=0;
    if (('undefined'===typeof IS_NODE) || (IS_NODE)) {
        module.exports = config;
    }