Configure HTTP/HTTPS Proxy
When Appsmith runs behind a corporate firewall or a Virtual Private Network (VPN), it may require proxy settings to access the internet and communicate with cs.appsmith.com. This page shows how to set up HTTP/HTTPS proxy on your self-hosted Appsmith instance so that you can access Appsmith using a proxy.
Prerequisites
- Self-hosted Appsmith instance. If not installed yet, see the installation guides for installing Appsmith.
Verify connectivity
Before you begin proxy configuration, verify if your Appsmith instance can connect to cs.appsmith.com for internal communication.
-
Connect to the
appsmith
container as root:docker exec -it -u root appsmith bash
-
Test connection with:
curl -i -v cs.appsmith.com
The command shows output as below:
* Trying <IP_Address>...
* TCP_NODELAY setIf you see below connection errors after the above output, it shows that a connection is not established and a proxy set up may be required.
connect to <IP address> port 80 failed: Connection timed out
curl: (7) Failed to connect to <IP address> port 80: Network unreachable
Set up proxy
Follow below steps to configure proxy by setting environment variables:
-
Open the Appsmith installation configuration file:
- Docker:
docker.env
- Kubernetes:
values.yaml
- Docker:
-
Use any one of the below pair of environment variables to set proxy:
HTTP_PROXY
andHTTPS_PROXY
(uppercase)http_proxy
andhttps_proxy
(lowercase)
For example, set up proxy using uppercase environment variables:
HTTP_PROXY=http://1.2.3.4:8080
HTTPS_PROXY=http://1.2.3.4:8080 -
Save the file and restart Appsmith instance.
-
Confirm proxy configuration with:
curl -i -v cs.appsmith.com
The command shows below output when connection is successfully established:
Trying <IP_ADDRESS>:8080...
* TCP_NODELAY set
* Connected to proxy (<IP_ADDRESS>) port 8080 (#0) -
When using an HTTPS proxy, you may want to add a trusted custom Certificate Authority to Appsmith. For more information, see Custom Root CA Certificate guide.
Troubleshooting
You may face some common issues while configuring the proxy. Troubleshoot by:
- Verifying the proxy address and port.
- Confirming that you've set up correct environment variables.
- Reviewing the network or firewall settings.
If you continue to face issues, contact the support team using the chat widget at the bottom right of this page.