feat: proxy setting (#1031)

* feat: add a proxy option into settings

* feat: add a proxy option into settings

* fix: use undici proxy agent
This commit is contained in:
Gauthier
2024-10-26 12:19:42 +02:00
committed by GitHub
parent d331798b28
commit 4b4eeb6ec7
6 changed files with 68 additions and 40 deletions

View File

@@ -119,6 +119,7 @@ export interface MainSettings {
mediaServerType: number;
partialRequestsEnabled: boolean;
locale: string;
httpProxy: string;
}
interface PublicSettings {
@@ -325,6 +326,7 @@ class Settings {
mediaServerType: MediaServerType.NOT_CONFIGURED,
partialRequestsEnabled: true,
locale: 'en',
httpProxy: '',
},
plex: {
name: '',