Skip to content
Picture of John Ouelett
John Ouelett

Robot From Future

Running Lando behind a Proxy

Users, particularly Windows users, may need to provide some additional networking configuration to their apps if they are sitting behind a proxy. A tell tale sign that you require this sort of configuration is connection issues. Here is an example of what such an issue looks like...

Creating test_appserver_1 ... done
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:20 --:--:-- 0
curl: (7) Failed to connect to port 443: Connection refused
error: Error: 7

If you think you may be in this situation there is a Lando driven mechanism you can use to help alleviate the issue as well as various Docker level mechanisms you can read about below.

Lando Environment Files

You can make sure your containers are aware of any relevant proxies by using a lando environment file and setting your config there. Below is an example of the things you would want to set in this env file. You do not need to define both although that is preferred.


It is also a good practice to .gitignore the env file so you can set proxy settings that are relevant to you without forcing those settings on other users and environments.

Potential Docker driven solutions