File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -52,11 +52,12 @@ module.exports = {
5252 if ( settingPublicUrl . slice ( - 1 ) !== '/' ) {
5353 settingPublicUrl += '/' ;
5454 }
55- // const pathPublicUrl = settingPublicUrl.slice(0, -1);
55+ const pathPublicUrl = settingPublicUrl . slice ( 0 , - 1 ) ;
5656 config . publicUrl = settingPublicUrl ;
5757 config [ 'access:trustedAuthUrls' ] = [ settingPublicUrl ] ;
58- config [ 'access:defaultAuthUrl' ] = [ settings . get ( 'hds:defaultAuthUrl' ) ] ;
59- // pathPublicUrl + wwwPath + '/access/access.html' ];
58+ // defaultAuthUrl is assigned to locally served app web auth unless configured
59+ const defaultAuthUrl = settings . get ( 'access:defaultAuthUrl' ) || pathPublicUrl + wwwPath + '/access/access.html' ;
60+ config [ 'access:defaultAuthUrl' ] = [ defaultAuthUrl ] ;
6061
6162 // load admin keys
6263 config . adminKey = settings . get ( 'auth:adminAccessKey' ) ;
Original file line number Diff line number Diff line change 1212auth :
1313 adminAccessKey : REPLACE_ME # key to use for system calls such as `/reg/admin/users`. A random key should be generated on setup.
1414 trustedApps : " *@https://pryv.github.io*, *@https://*.rec.la*, *@https://*.backloop.dev*" # list of web apps that can be trusted-app functionalities
15+
16+ access :
17+ # defaultAuthUrl: https://your.host/path/access/access.html # uncomment to set another path for your app-web-auth3
1518service :
1619 serial : 1000001 # change serial number each time assets content needs to be reloaded by clients
1720 name : Open-Pryv.io
You can’t perform that action at this time.
0 commit comments