Configure network proxy
Last updated
Last updated
If your computer is behind a network proxy, you might use a proxy configuration for some of the grunt tasks in devtools (e.g. run local server or ).
The local HTTP server forwards requests (for not locally available resources) to the configured remoteUrl. If the remoteUrl can only be reached through your network proxy, you should configure a proxy.
Uploading a webpackage to a remote requires access to the Base instance. If the remoteUrl can only be reached through your network proxy, you should configure a proxy.
Use the environment variables http_proxy, https_proxy and no_proxy (or HTTP_PROXY, HTTPS_PROXY and NO_PROXY) to configure a network proxy for your local environment.
In Linux you should run the following commands:
Press Win+Pause
to open the Advanced system settings
Open Environment Variables
Add a new environment variable http_proxy, and configure the HTTP proxy URL
Add a new environment variable https_proxy, and configure the https proxy URL
Add a new environment variable no_proxy if you will exclude domains from the proxy, and configure a comma-separated list of excludes.
If you don't want to configure the network proxy in the environment variables, you can do it in the .workspace
file ([your project path]/webpackages/.workspace). The proxy configuration in the .workspace
overrides the environment variables.
You can define proxy settings on the upload configuration using the proxy
property. In the example above, it overrides the existing higher-level configurations (in .workspace
or on your local machine).