Prepare the proxy credential
- Log in to the client area, open My Services and click your server. Scroll to Use your IP from code, n8n, CI or a browser. Under Add a proxy user, type
ciand click Add.
You should see: a new card namedapp-ci. Names can use letters and digits only, and MazeVPN adds theapp-prefix. - On that card, click Copy next to HTTPS proxy (marked Encrypted). The copied URL contains the password, so paste it only into a secret or environment variable, never into code.
The card of a new proxy user. The eye icon shows the password; Copy copies the full URL with the password. (Server IP replaced with an example.) You should see: a URL likehttps://app-ci:…@203.0.113.42:443, where the address is your server’s IP. - Load MAZE_PROXY_URL, MAZE_PROXY_HOST and MAZE_PROXY_AUTH from your secret store. In these examples the host field is 203.0.113.42 and the auth field is app-ci:PASSWORD. You should see: The proxy URL uses the HTTPS endpoint and port 443. Keep credentials out of shell history, command tracing, and shared process arguments.
curl: check each address
curl -fsS --noproxy '*' https://api.ipify.org
curl -fsS -x "$MAZE_PROXY_URL" https://api.ipify.org
curl -fsS --proxy "https://$MAZE_PROXY_HOST:443" \
--proxy-user "$MAZE_PROXY_AUTH" https://api.ipify.org
HTTPS_PROXY="$MAZE_PROXY_URL" curl -fsS https://api.ipify.org
curl -fsS --socks5-hostname "$MAZE_PROXY_HOST:1080" \
--proxy-user "$MAZE_PROXY_AUTH" https://api.ipify.orgGit: use HTTP configuration for HTTPS remotes
Use http.proxy for both HTTP and HTTPS remotes. The documented environment variable is https_proxy for HTTPS destinations. Git has no documented https.proxy configuration key. An SSH remote uses its SSH configuration.
Set http.proxyAuthMethod to basic when the proxy URL contains a username and password. Git’s default, anyauth, first sends the CONNECT request without credentials. If an HTTPS proxy closes the connection after its 407 reply, the libcurl retry fails with "Failed sending CONNECT to proxy". We saw this with Git 2.54 for Windows and Git 2.53 in WSL on November 24, 2026, and basic fixed it. MazeVPN servers now keep that connection open, so the default also worked in a November 25 retest. Basic remains a safe choice for any proxy. The GIT_HTTP_PROXY_AUTHMETHOD environment variable does the same when you use https_proxy.
Per Git docs, git config --global http.proxy sets a persistent default, and an http.<url>.proxy key limits the proxy to one remote. Keep real credentials out of shared Git configuration.
If a setup only allows SOCKS5, set MAZE_SOCKS_URL to socks5h://app-ci:PASSWORD@203.0.113.42:1080 and use it as http.proxy. The last command below returned HEAD in the same test. SOCKS5 sends proxy authentication unencrypted between your machine and the proxy, so prefer the HTTPS proxy.
git -c http.proxy="$MAZE_PROXY_URL" -c http.proxyAuthMethod=basic \
ls-remote https://github.com/git/git.git HEAD
git -c "http.https://github.com/git/git.git.proxy=$MAZE_PROXY_URL" \
-c "http.https://github.com/git/git.git.proxyAuthMethod=basic" \
ls-remote https://github.com/git/git.git HEAD
https_proxy="$MAZE_PROXY_URL" GIT_HTTP_PROXY_AUTHMETHOD=basic \
git ls-remote https://github.com/git/git.git HEAD
git -c http.proxy="$MAZE_SOCKS_URL" ls-remote https://github.com/git/git.git HEADnpm and pip: scope the proxy to one command
npm uses https-proxy for HTTPS registry requests and proxy for HTTP requests. noproxy lists hosts to connect to directly. Per npm docs, npm config set proxy and npm config set https-proxy can persist the settings, and .npmrc values can interpolate an environment variable. Use a secret reference in a project file to keep the actual URL out of it.
Use these .npmrc entries when you need persistent project configuration: proxy=${MAZE_PROXY_URL}, https-proxy=${MAZE_PROXY_URL}, and noproxy=localhost,.internal on separate lines. The pip index command verifies access to the public package index without installing a package.
In the same WSL test, npm ping reached the registry using both the environment and project settings, pip listed versions from PyPI, and curl using the same HTTPS proxy URL returned the QA server’s IPv4.
HTTPS_PROXY="$MAZE_PROXY_URL" npm ping --registry=https://registry.npmjs.org/
python -m pip --proxy "$MAZE_PROXY_URL" index versions pipSave npm settings for a disposable project
- Use a scratch project and npm config set to write environment-variable references to .npmrc. Single quotes keep the shell from expanding the secret while writing the file.
npm config set 'proxy=${MAZE_PROXY_URL}' 'https-proxy=${MAZE_PROXY_URL}' \ 'noproxy=localhost,.internal' --location=project npm ping --registry=https://registry.npmjs.org/You should see: The file contains the variable reference. npm ping succeeds when the variable is set for the project.
Official references
- curl reference
- Git configuration and HTTP proxy
- npm config settings
- npm config command
- npm registry ping
- npmrc files and variable interpolation
- pip general options
Skip the setup
A dedicated IPv4 in 38 cities, usually ready about 3 minutes after payment. Connect devices with WireGuard and apps with an authenticated HTTPS, HTTP, or SOCKS5 proxy. From $9.99/month.