Add support for custom certificates in proxy configuration

This commit is contained in:
Ronni Skansing
2026-04-23 17:56:56 +02:00
parent aa6b6b6c47
commit db3860a440
15 changed files with 1909 additions and 1425 deletions
+16 -2
View File
@@ -3226,15 +3226,27 @@ export class API {
* @param {string} proxy.startURL
* @param {string} proxy.proxyConfig
* @param {string} proxy.companyID
* @param {string} [proxy.globalTLSKey]
* @param {string} [proxy.globalTLSPem]
* @returns {Promise<ApiResponse>}
*/
create: async ({ name, description, startURL, proxyConfig, companyID }) => {
create: async ({
name,
description,
startURL,
proxyConfig,
companyID,
globalTLSKey,
globalTLSPem
}) => {
return await postJSON(this.getPath('/proxy'), {
name: name,
description: description,
startURL: startURL,
proxyConfig: proxyConfig,
companyID: companyID
companyID: companyID,
...(globalTLSKey ? { globalTLSKey } : {}),
...(globalTLSPem ? { globalTLSPem } : {})
});
},
@@ -3247,6 +3259,8 @@ export class API {
* @param {string} proxy.description
* @param {string} proxy.startURL
* @param {string} proxy.proxyConfig
* @param {string} [proxy.globalTLSKey]
* @param {string} [proxy.globalTLSPem]
* @returns {Promise<ApiResponse>}
*/
update: async (id, proxy) => {