sacredbanana / AmigaGPT

AmigaOS 3.2/3.9/4.1 application for chatting with ChatGPT or generating images with DALL-E
Other
50 stars 4 forks source link

Add support for proxy #17

Open kowoba opened 2 months ago

kowoba commented 2 months ago

Just a suggestion... add support for proxy server, either using global evironment ${https_proxy} (ENV:https_proxy) or through config setting (or both, setting overriding env var?). I'm currently doing a work-around by pointing my Amiga systems to a dedicated openai-proxy instance (with socat listening on 443) using an entry for api.openai.com in the hosts file, but it's a bit cumbersome, would be easier to just use the normal web proxy.

Cheers!

github-actions[bot] commented 2 months ago

Welcome! Thanks for submitting your first AmigaGPT issue! Your issue will be looked at ASAP. <3

sacredbanana commented 2 months ago

Sure. I think adding proxy servers to a connection in AmiSSL is pretty straightforward so I'll do this for you.

I'm curious though, why are you even using a proxy server for your Amiga traffic?

kowoba commented 2 months ago

Well, mostly because my Amiga systems are legacy IPv4-only and kinda "air-locked" on my otherwise IPv6-only home network with native IPv6 uplink :)

Btw - you may want to have a look at the "AmiGeminiProxy" in the AmiGemini archive (in the sources), it can do "unsecure" https proxying or "ssl offloading" or what to call it, so even 68000 systems for which there is no AmiSSL can still reach https on remote sites. Despite its name, it doesn't just do the Gemini protocol, it also does http, https and many more.

Cheers, and thanks for swift response!

sacredbanana commented 2 months ago

haha I'll stick with IPv4 for my home network