Skip to content

Commit

Permalink
feat(added-secure-prop-to-proxy-config): added new parameter 'secure'…
Browse files Browse the repository at this point in the history
… to be able to handle

'UNABLE_TO_VERIFY_LEAF_SIGNATURE' error
  • Loading branch information
goququ committed May 23, 2023
1 parent bed797d commit 0aa8943
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/gitlab-backend/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,11 @@ export interface Config {
* @visibility backend
*/
allowedKinds?: string[];
/**
* This parameter controls SSL Certs verification
* @default true
* @visibility backend
*/
proxySecure?: boolean;
};
}
2 changes: 2 additions & 0 deletions packages/gitlab-backend/src/service/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export async function createRouter(
options: RouterOptions
): Promise<express.Router> {
const { logger, config } = options;
const secure = config.getOptionalBoolean('gitlab.proxySecure');
const basePath = getBasePath(config) || '';

const gitlabIntegrations: GitLabIntegrationConfig[] =
Expand Down Expand Up @@ -55,6 +56,7 @@ export async function createRouter(
headers: {
...(token ? { 'PRIVATE-TOKEN': token } : {}),
},
secure,
logProvider: () => logger,
pathRewrite: {
[`^${basePath}/api/gitlab/${host}`]: apiUrl.pathname,
Expand Down

0 comments on commit 0aa8943

Please sign in to comment.