Granted, this is a minor topic, much less sophisticated than most of my blog’s posts. But it took me a couple of hours to find out how to run the Atom editor behind a firewall, so it me be worth a short article.
If you’re running Atom behind a firewall, you won’t be able to install plugins not updates until you configure the proxy settings. Basically, all you have to do is to set two user-defined variables:
https-proxy. However, it’s not that obvious where to configure these variables.
The easiest way find or create the configuration file is to open the settings dialog (“File” –> “Settings”). On bottom of the left hand side, there’s a button called “Open config folder”. Clicking it opens a new project (
.atom). That’s the settings folder in your user profile. The root folder should contain a file called
.apmrc. If it doesn’t, create it.
Next you add these lines to the file (replacing
proxyserver and the port number with the settings you use in your internet browser):
http-proxy=http://username:password@proxyserver:8088 https-proxy=http://username:password@proxyserver:8088 strict-ssl=false
Don’t add the variable
proxy, nor try to write the variables in capital letters. Sometimes people suggest these things, but Atom ignores these variables.
Not that you have to prefix the proxy server name with
http://. If you omit it, you’ll get a “parse exception”. In my case I had to use
http:// for both the http and the https protocol – but that may be a peculiarity of my company’s network.