Skip to content

Commit de03870

Browse files
Christopher Frostnebhale
authored andcommitted
Document usage of a proxy to access the network
The Java buildpack support deployments where a proxy is used to access the Internet or local network but this is not documented. This commit documents this support. [#76620036]
1 parent bda9e51 commit de03870

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/extending-repositories.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,13 @@ Repositories can be configured by modifying the [`config/repository.yml`][] file
6565
| ---- | -----------
6666
| `default_repository_root` | This property can take a URI that is used as a common root for all of the repositories used by the buildpack. The value is substituted for the `{default.repository.root}` variable in `repository_root` declarations.
6767

68+
## Proxies
69+
Access to repositories may be affected by the existence of network proxies. In order to configure the buildpack to use a proxy, set the `http_proxy`, `HTTP_PROXY`, `https_proxy`, or `HTTPS_PROXY` environment variables with the property proxy URI. Proxy authentication crendentials can be embedded in the URI if needed.
70+
71+
```bash
72+
cf set-env <APP_NAME> http_proxy http://username:password@host:port
73+
```
74+
6875
## Version Syntax and Ordering
6976
Versions are composed of major, minor, micro, and optional qualifier parts (`<major>.<minor>.<micro>[_<qualifier>]`). The major, minor, and micro parts must be numeric. The qualifier part is composed of letters, digits, and hyphens. The lexical ordering of the qualifier is:
7077

0 commit comments

Comments
 (0)