Skip to content

Commit a5c8620

Browse files
authored
Updated section on using a proxy server (#141).
1 parent 7af51b8 commit a5c8620

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

README.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,15 +73,16 @@ gitLabApi.unsudo();
7373
As of GitLab4J-API 4.8.2 support has been added for connecting to the GitLab server using an HTTP proxy server:
7474
```java
7575
// Log in to the GitLab server using a proxy server (with basic auth on proxy)
76-
Map<String, Object> proxyConfiguration = ProxyClientConfig.createProxyClientConfig("http://your-proxy-server", "proxy-username", "proxy-password");
77-
GitLabApi gitLabApi = new GitLabApi("http://your.gitlab.server.com", "YOUR_PRIVATE_TOKEN", null, proxyConfiguration);
78-
```
79-
```java
76+
Map<String, Object> proxyConfig = ProxyClientConfig.createProxyClientConfig(
77+
"http://your-proxy-server", "proxy-username", "proxy-password");
78+
GitLabApi gitLabApi = new GitLabApi("http://your.gitlab.com", "YOUR_PRIVATE_TOKEN", null, proxyConfig);
79+
8080
// Log in to the GitLab server using a proxy server (no auth on proxy)
81-
Map<String, Object> proxyConfiguration = ProxyClientConfig.createProxyClientConfig("http://your-proxy-server");
82-
GitLabApi gitLabApi = new GitLabApi("http://your.gitlab.server.com", "YOUR_PRIVATE_TOKEN", null, proxyConfiguration);
81+
Map<String, Object> proxyConfig = ProxyClientConfig.createProxyClientConfig("http://your-proxy-server");
82+
GitLabApi gitLabApi = new GitLabApi("http://your.gitlab.com", "YOUR_PRIVATE_TOKEN", null, proxyConfig);
8383
```
84-
*NOTE: See the Javadoc on the GitLabApi class for a complete list of methods accepting the proxy configuration (clientConfiguration parameter)*
84+
See the Javadoc on the GitLabApi class for a complete list of methods accepting the proxy configuration (clientConfiguration parameter)
85+
8586
---
8687
## GitLab API V3 and V4 Support
8788
As of GitLab4J-API 4.2.0 support has been added for GitLab API V4. If your application requires GitLab API V3,

0 commit comments

Comments
 (0)