File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 "types" : " ./dist/src/utils/errors.d.ts" ,
4545 "import" : " ./dist/src/utils/errors.js" ,
4646 "require" : " ./dist/src/utils/errors.js"
47+ },
48+ "./service" : {
49+ "types" : " ./dist/src/service/index.d.ts" ,
50+ "import" : " ./dist/src/service/index.js" ,
51+ "require" : " ./dist/src/service/index.js"
4752 }
4853 },
4954 "scripts" : {
Original file line number Diff line number Diff line change @@ -22,9 +22,12 @@ import { ConfigLoader } from './ConfigLoader';
2222import { Configuration } from './types' ;
2323import { serverConfig } from './env' ;
2424import { getConfigFile } from './file' ;
25+
2526import { validateConfig } from './validators' ;
2627import { handleErrorAndLog , handleErrorAndThrow } from '../utils/errors' ;
2728
29+ export { setConfigFile , getConfigFile , validate } from './file' ;
30+
2831// Deprecated compatibility fields are still optional because the defaults do not set them.
2932type OptionalTopLevelConfigKey = 'proxyUrl' | 'sslCertPemPath' | 'sslKeyPemPath' ;
3033type RequiredTopLevelConfigKey = Exclude < keyof GitProxyConfig , OptionalTopLevelConfigKey > ;
@@ -223,6 +226,11 @@ export const getAuthorisedList = () => {
223226 return config . authorisedList ;
224227} ;
225228
229+ // Get GIT_PROXY_UI_PORT
230+ export const getUIPort = ( ) : number => {
231+ return Number ( serverConfig . GIT_PROXY_UI_PORT ) ;
232+ } ;
233+
226234// Gets a list of authorised repositories
227235export const getTempPasswordConfig = ( ) => {
228236 const config = loadFullConfiguration ( ) ;
You can’t perform that action at this time.
0 commit comments