Proxy
Proxy for APT
Define the configs below in the file
/etc/apt/apt.conf
Acquire::http::proxy "http://user:pass@host:port/";
Acquire::https::proxy "http://user:pass@host:port/";
Acquire::ftp::Proxy "ftp://user:pass@host:port/";or define environments inside the file
etc/profile
ftp_proxy="http://user:pass@host:port"
http_proxy="http://user:pass@host:port"
https_proxy="https://user:pass@host:port"
FTP_PROXY="http://user:pass@host:port"
HTTP_PROXY="http://user:pass@host:port"
HTTPS_PROXY="https://user:pass@host:port"
HTTP_PROXY_REQUEST_FULLURI="0"
HTTPS_PROXY_REQUEST_FULLURI="0"To disable Proxy
unset http_proxy
unset https_proxy
unset ftp_proxy
unset HTTP_PROXY
unset HTTPS_PROXY
unset FTP_PROXYProxy for SSH
Proxy for NPM
Verify the configs from NPM Proxy
Add Proxy configs for NPM
Remove proxy for NPM
Last updated
Was this helpful?