configuração de proxy

This commit is contained in:
Luiz Silva 2026-07-29 11:48:40 -03:00
parent a270921fad
commit c447b5a1f1
2 changed files with 59 additions and 1 deletions

48
proxy Normal file
View file

@ -0,0 +1,48 @@
# Configuração de Proxy (CLI e IDE)
Guia de configuração de proxy HTTP/HTTPS para utilização no terminal (CLI) e na IDE (VS Code / Cursor).
---
## 1. Configuração para Uso no CLI (Bash / Zsh)
### Passo 1: Abrir o arquivo de configuração do shell
Abra o arquivo de configuração do seu shell (`~/.bashrc` ou `~/.zshrc`).
*(Nota: No macOS utilize `nano ~/.zshrc` sem `sudo`)*:
```bash
nano ~/.bashrc # ou ~/.zshrc
```
### Passo 2: Adicionar o Alias
Adicione a seguinte instrução ao final do arquivo:
```bash
alias agy2='http_proxy="http://dev:Inova54@179.127.81.102:8888" https_proxy="http://dev:Inova54@179.127.81.102:8888" HTTP_PROXY="http://dev:Inova54@179.127.81.102:8888" HTTPS_PROXY="http://dev:Inova54@179.127.81.102:8888" no_proxy="localhost,127.0.0.1,192.168.0.0/16,::1,.local" NO_PROXY="localhost,127.0.0.1,192.168.0.0/16,::1,.local" ~/.local/bin/agy'
```
### Passo 3: Recarregar o terminal
Execute o comando correspondente para aplicar as alterações:
```bash
source ~/.bashrc # ou source ~/.zshrc
```
---
## 2. Configuração para Uso na IDE (VS Code / Cursor)
1. Pressione `Ctrl + Shift + P` (ou `Cmd + Shift + P` no macOS).
2. Procure por **Preferences: Open User Settings (JSON)**.
3. Adicione as seguintes configurações ao seu `settings.json`:
```json
"http.proxy": "http://dev:Inova54@179.127.81.102:8888/",
"http.proxyStrictSSL": false,
"http.proxySupport": "on",
"http.noProxy": [
"localhost",
"127.0.0.1",
"::1"
]
```