Feat: may setup proxy (#238)

* add https proxy

* remove proxy in renderer

* proxy work for openai request

* use proxyAgent to enable system proxy

* add proxy setting

* tweak proxy setting
This commit is contained in:
an-lee
2024-02-01 15:33:37 +08:00
committed by GitHub
parent 93dea4ad54
commit 51a810fdfd
17 changed files with 470 additions and 32 deletions

View File

@@ -15,6 +15,10 @@ type EnjoyAppType = {
preferences: {
mediaAccess: (mediaType: "microphone") => Promise<boolean>;
};
proxy: {
get: () => Promise<ProxyConfigType>;
set: (config: ProxyConfigType) => Promise<void>;
};
};
providers: {
audible: {

View File

@@ -158,3 +158,8 @@ type TedIdeaType = {
title: string;
description: string;
};
type ProxyConfigType = {
enabled: boolean;
url: string;
};