-
Notifications
You must be signed in to change notification settings - Fork 8
Working with a proxy
Casper Thule edited this page Feb 5, 2018
·
1 revision
You cannot currently set any proxy information inside the app.
Fortunately, electron can pick up proxy settings from the following environment variables: http_proxy
, https_proxy
. There are many ways to set these variables, depending on the OS:
- on windows, you can use the
Environment Variables
dialog - on *nix, you can use
export
in your.bashrc
files.
If you don't want to set the proxy globally, the easiest thing to do is to wrap the INTO app in a launcher script. An example for windows users is bellow:
set http_proxy=http://proxy.example.com:[port]
set https_proxy=http://proxy.example.com:[port]
into-cps-app-2.0.0.exe (adjust executable name)
The same thing works if you are developing on the app. Just set the proxy variables before running npm start
.