HTTP PROXY support #26

Open
opened 2025-11-19 07:12:18 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @vaclcer on GitHub (May 18, 2025).

Originally assigned to: @oschwartz10612 on GitHub.

Hello, newt seems to ignore HTTP_PROXY or http_proxy env variables. My question is, will this ever work on Sites with Internet access realised ONLY via HTTP proxy? (tight corporate environment...). Thanks!

ERROR: 2025/05/18 21:44:30 Failed to connect: failed to get token: failed to get token: No newt found with that newtId. Retrying in 10s...

Originally created by @vaclcer on GitHub (May 18, 2025). Originally assigned to: @oschwartz10612 on GitHub. Hello, newt seems to ignore HTTP_PROXY or http_proxy env variables. My question is, will this ever work on Sites with Internet access realised ONLY via HTTP proxy? (tight corporate environment...). Thanks! `ERROR: 2025/05/18 21:44:30 Failed to connect: failed to get token: failed to get token: No newt found with that newtId. Retrying in 10s...`
GiteaMirror added the enhancement label 2025-11-19 07:12:18 -06:00
Author
Owner

@oschwartz10612 commented on GitHub (May 22, 2025):

Hum good question this is to use a HTTP proxy to the Pangolin server itself? Would simply editing the --endpoint work or do you need that HTTP_PROXY to work?

@oschwartz10612 commented on GitHub (May 22, 2025): Hum good question this is to use a HTTP proxy to the Pangolin server itself? Would simply editing the `--endpoint` work or do you need that HTTP_PROXY to work?
Author
Owner

@vaclcer commented on GitHub (May 22, 2025):

Yes. Pangolin server sits on a public IP, no issues there. But the client (the Site, in Pangolin's terminology) has to go only via HTTP Proxy (like Squid), defined in http_proxy (or HTTP_PROXY) env variable on the client.

FRP supports it - https://github.com/fatedier/frp?tab=readme-ov-file#connecting-to-frps-via-proxy

@vaclcer commented on GitHub (May 22, 2025): Yes. Pangolin server sits on a public IP, no issues there. But the client (the Site, in Pangolin's terminology) has to go only via HTTP Proxy (like Squid), defined in http_proxy (or HTTP_PROXY) env variable on the client. FRP supports it - https://github.com/fatedier/frp?tab=readme-ov-file#connecting-to-frps-via-proxy
Author
Owner

@oschwartz10612 commented on GitHub (May 24, 2025):

Ill look in to trying to add this!

@oschwartz10612 commented on GitHub (May 24, 2025): Ill look in to trying to add this!
Author
Owner

@DenkingOfficial commented on GitHub (Sep 9, 2025):

Hey!
Any updates on proxy support for client?

@DenkingOfficial commented on GitHub (Sep 9, 2025): Hey! Any updates on proxy support for client?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/newt#26