Skip to content

Commit

Permalink
Update lando-corporate-network-tips.md
Browse files Browse the repository at this point in the history
  • Loading branch information
reynoldsalec authored Oct 10, 2024
1 parent 6c822ff commit 842f5ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions guides/lando-corporate-network-tips.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Follow these steps:

It's important to wipe out all exisitng Lando containers (hence the uninstall) and make sure to add your cert **BEFORE running any Lando commands** to ensure that your cert is populated into the containers.

#### Adding Certs for PHP cURL Requests
## Adding Certs for PHP cURL Requests
If you make external requests with the PHP process in your app, you will also need to include the cert in your appserver's `php.ini` file:

```
Expand All @@ -101,7 +101,7 @@ curl.cainfo='/app/yourcert.crt'
openssl.cafile='/app/yourcert.crt'
```

#### Adding Certs to a NodeJS Service
## Adding Certs to a NodeJS Service
If you have a Node server in your Lando environment, you'll need to concatenate your certificates into a single .pem file and add this to your Node configuration:

```
Expand Down Expand Up @@ -129,7 +129,7 @@ https-proxy=http://host.docker.internal:9000
cafile=/app/yourcert.crt
```

#### Adding Certs for Native cURL
## Adding Certs for Native cURL
If you use cURL outside of the cURL PHP extension, you'll need to provide the cert (and possibly the proxy location). Add the following build step to your `.lando.yml`:

```
Expand Down Expand Up @@ -166,7 +166,7 @@ environment:
HTTPS_PROXY: "http://host.docker.internal:9000"
```

#### Define Proxy Location for `apt-get`
## Define Proxy Location for `apt-get`

If you use `apt-get` to install packages within a container, you will probably need to define the proxy location for it as well. To do so, modify your project's `.lando.yml` to add the following `build-as-root` command:

Expand Down

0 comments on commit 842f5ae

Please sign in to comment.