Atom using System Proxy

Alexander Wryn picture Alexander Wryn · Sep 21, 2018 · Viewed 7.4k times · Source

Regardless of what I configure in .apmrc, ATOM is using my system proxy settings for connection. Only when I change the proxy under Internet Options to my CNTLM service does it actually do so. How can I fix this issue?

Userconfig: \.atom\.apmrc   
http-proxy = "http://localhost:3128"  
https-proxy = "http://localhost:3128"  
proxy = "http://localhost:3128"  
strict-ssl = false  


atom --version
Atom    : 1.30.0    
Electron: 2.0.5    
Chrome  : 61.0.3163.100   
Node    : 8.9.3   

apm --version   
apm  1.19.0   
npm  3.10.10   
node 6.9.5 x64   
atom 1.30.0   
python 3.7.0   
git   
visual studio 2015  

Answer

Daveedo picture Daveedo · Sep 27, 2018

If you simply modified .apmrc file, it would be reset every time when you reboot atom.

See https://github.com/atom/apm#behind-a-firewall , you'll find solution to this under the 'Using a proxy?' part.

And then run cmd

apm config set strict-ssl false apm config set https-proxy https://$Your_proxy

P.S. Normally it'll be fixed, but if a problem like SSL782 pops up, See

Error: tunneling socket could not be established, cause=write EPROTO 101057795:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:openssl\ssl\s23_clnt.c:782