remove(proxy): remove warp-proxy

This commit is contained in:
JamesFlare1212
2026-04-07 18:19:13 -04:00
parent 0a133159e8
commit ea9e9ec121
4 changed files with 0 additions and 40 deletions

View File

@@ -11,10 +11,6 @@ let _inMemoryCookies: Cookie[] | null = null;
// Login lock to prevent concurrent login attempts
let _loginLock: Promise<Cookie[]> | null = null;
// Proxy configuration
const USE_PROXY = process.env.USE_PROXY === 'true';
const PROXY_SERVER = process.env.ALL_PROXY || process.env.HTTP_PROXY || `http://host.docker.internal:9091`;
/**
* Ensure only one login process runs at a time
*/
@@ -48,15 +44,6 @@ export async function loginWithPlaywright(username: string, password: string): P
args: ['--no-sandbox', '--disable-setuid-sandbox']
};
// Configure proxy if enabled
if (USE_PROXY) {
logger.info(`Using proxy: ${PROXY_SERVER}`);
browserLaunchOptions.proxy = {
server: PROXY_SERVER,
bypass: 'localhost,127.0.0.1,::1'
};
}
const browser = await chromium.launch(browserLaunchOptions);
try {