DEV Community

Andres C
Andres C

Posted on

4 4

CONFIGURAR UN PROXY CORPORATIVO

Cuando la aplicación de consola se utiliza en una empresa, probablemente necesitará configurar todas las herramientas para salir a internet por el proxy corporativo.

Suponiendo que el proxy tiene los siguientes elementos

  • username
  • password
  • host
  • port

Da como resultado la siguiente configuracion http://username:password@host:port

Git proxy

use los siguientes comandos

git config --global http.proxy http://username:password@host:port
git config --global https.proxy http://username:password@host:port
Enter fullscreen mode Exit fullscreen mode

o editando directamente el archivo ~/.gitconfig

[http]
proxy = http://username:password@host:port
[https]
proxy = http://username:password@host:port
Enter fullscreen mode Exit fullscreen mode

NPM proxy

npm config set proxy http://username:password@host:port
npm config set https-proxy http://username:password@host:port
Enter fullscreen mode Exit fullscreen mode

o editando directamente el archivo ~/.npmrc

proxy=http://username:password@host:port
https-proxy=http://username:password@host:port
https_proxy=http://username:password@host:port
Enter fullscreen mode Exit fullscreen mode

IONIC proxy

ionic config set -g proxy http://username:password@host:port
ionic config set -g https-proxy http://username:password@host:port
Enter fullscreen mode Exit fullscreen mode

Yarn proxy

yarn config set proxy http://username:password@host:port
yarn config set https-proxy http://username:password@host:port
Enter fullscreen mode Exit fullscreen mode

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more