From 2dab53855f4245178db98c99238ac0e382a96111 Mon Sep 17 00:00:00 2001 From: Nikita Bykov Date: Sat, 28 Jun 2025 16:25:18 +0500 Subject: [PATCH] added proxy config for gpt --- .config/proxy/config.pac | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .config/proxy/config.pac diff --git a/.config/proxy/config.pac b/.config/proxy/config.pac new file mode 100644 index 0000000..0fde748 --- /dev/null +++ b/.config/proxy/config.pac @@ -0,0 +1,24 @@ +function FindProxyForURL(url, host) { + // Proxy server (customize this line) + var proxy = "PROXY 91.199.147.158:3128"; + + // Domains related to ChatGPT/OpenAI + var chatgptDomains = [ + "chatgpt.com", + "chat.openai.com", + "openai.com", + "api.openai.com", + "platform.openai.com", + "auth0.openai.com" + ]; + + for (var i = 0; i < chatgptDomains.length; i++) { + if (dnsDomainIs(host, chatgptDomains[i]) || shExpMatch(host, "*." + chatgptDomains[i])) { + return proxy; + } + } + + // All other traffic goes direct + return "DIRECT"; +} +