Skip to content

Commit 8bb2f55

Browse files
authored
Merge branch 'main' into chore/GHA-270701-stepsecurity-remediation
2 parents 51da64c + 2beab81 commit 8bb2f55

2 files changed

Lines changed: 13 additions & 0 deletions

File tree

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@
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": {

src/config/index.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,12 @@ import { ConfigLoader } from './ConfigLoader';
2222
import { Configuration } from './types';
2323
import { serverConfig } from './env';
2424
import { getConfigFile } from './file';
25+
2526
import { validateConfig } from './validators';
2627
import { 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.
2932
type OptionalTopLevelConfigKey = 'proxyUrl' | 'sslCertPemPath' | 'sslKeyPemPath';
3033
type 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
227235
export const getTempPasswordConfig = () => {
228236
const config = loadFullConfiguration();

0 commit comments

Comments
 (0)