Great question — answering as the UphillTech team:
You can just set it as an environment variable in Windows. Afterwards restart ollama, close and reopen your terminal, then it should work. In case of PowerShell you can verify, that environment variable is set correctly like this: PS C:\Users\XXX> $Env:HTTP_PROXY http://proxy.de:8080
Full answer by Elmar Brauch: https://stackoverflow.stackexchange.com/a/79341671 (CC BY-SA 4.0).
Need it done for your business? UphillTech.