File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,9 +2,10 @@ const path = require('path');
22const { ComponentsManager } = require ( 'componentsjs' ) ;
33const { setGlobalLoggerFactory, WinstonLoggerFactory } = require ( '@solid/community-server' ) ;
44
5- const protocol = 'http' ;
6- const host = 'localhost' ;
7- const port = 4000 ;
5+ const protocol = process . env . UMA_DEMO_PROTOCOL ?? 'http' ;
6+ const host = process . env . UMA_DEMO_HOST ?? 'localhost' ;
7+ const port = process . env . UMA_DEMO_PORT ?? 4000 ;
8+ const policiesUrl = process . env . UMA_DEMO_POLICIES ?? 'http://localhost:3000/settings/policies/' ;
89
910const baseUrl = `${ protocol } ://${ host } :${ port } /uma` ;
1011const rootDir = path . join ( __dirname , '../' ) ;
@@ -16,7 +17,7 @@ const launch = async () => {
1617 variables [ 'urn:uma:variables:baseUrl' ] = baseUrl ;
1718
1819 // variables['urn:uma:variables:policyDir'] = path.join(rootDir, './config/rules/policy');
19- variables [ 'urn:uma:variables:policyContainer' ] = 'http://localhost:3000/settings/policies/' ;
20+ variables [ 'urn:uma:variables:policyContainer' ] = policiesUrl ;
2021 variables [ 'urn:uma:variables:eyePath' ] = 'eye' ;
2122
2223 const configPath = path . join ( rootDir , './config/demo.json' ) ;
You can’t perform that action at this time.
0 commit comments