How To
Summary
How to configure a proxy for IBM Resilient Circuits
Steps
If IBM Resilient Circuits needs to connect to an external URL via a proxy server, you can set environment variables.
http_proxy=http://proxy:8080
https_proxy=https://proxy:8080
If you want to exclude certain hosts (for example the URL in your internal network) from the proxy, you need to use the "no_proxy" environment variable.
For example, to exclude the proxy when connecting to resilient.example.com, you use
export no_proxy=resilient.example.com,resilient.localdomain,127.0.0.1
If IBM Resilient Circuits is started as a systemd service you can add the proxy settings to the services file.
1. Open and edit the file "/etc/systemd/system/resilient-circuits.service".
2. Find the section "[Service]", add the following lines:
Environment=HTTP_PROXY=http://proxy:8080
Environment=HTTPS_PROXY=https://proxy:8080
Environment=NO_PROXY=resilient.example.com,resilient.localdomain,127.0.0.1
3. Save the changes.
4. Load the changes and restart the service by command:
sudo systemctl daemon-reload
sudo systemctl restart resilient-circuits
The NO_PROXY
environment variable specifies URLs that should be excluded from proxying (on servers that should be contacted directly). This should be a comma-separated list of hostnames, domain names, or a mixture of both.
If you need to exclude all URLs which match a subdomain, do not use "*.suddomain.com" in "NO_PROXY". You should use "subdomain.com" or ".subdomain.com" instead.
For IBM Resilient Circuits running on Windows
You need to set the same environment variables on Windows following the steps below:
1. Go to Control Panel > System > Edit the system environment variables.
2. In the "System Properties" window, select "Advanced" tab, click button "Environment Variables".
3. Click "New ..." to add environment variables of HTTP_PROXY, HTTPS_PROXY and NO_PROXY. Click "OK" and "Apply".
4. Restart IBM Resilient Circuits from the command line or from the Windows service.
Document Location
Worldwide
Was this topic helpful?
Document Information
Modified date:
19 April 2021
UID
ibm11160488