init
This commit is contained in:
20
.envrc
Normal file
20
.envrc
Normal file
@@ -0,0 +1,20 @@
|
||||
# 本项目代理(仅本目录生效;可用 direnv 自动加载,或手动 source)
|
||||
# 目标:将网络请求代理到本机 127.0.0.1:7897
|
||||
|
||||
export PROXY_HOST="127.0.0.1"
|
||||
export PROXY_PORT="7897"
|
||||
|
||||
# HTTP/HTTPS 代理(多数 CLI 工具识别)
|
||||
export http_proxy="http://${PROXY_HOST}:${PROXY_PORT}"
|
||||
export https_proxy="http://${PROXY_HOST}:${PROXY_PORT}"
|
||||
export HTTP_PROXY="http://${PROXY_HOST}:${PROXY_PORT}"
|
||||
export HTTPS_PROXY="http://${PROXY_HOST}:${PROXY_PORT}"
|
||||
|
||||
# SOCKS5 代理(部分工具使用 ALL_PROXY)
|
||||
export all_proxy="socks5h://${PROXY_HOST}:${PROXY_PORT}"
|
||||
export ALL_PROXY="socks5h://${PROXY_HOST}:${PROXY_PORT}"
|
||||
|
||||
# 本地地址不走代理(避免本地联调被误代理)
|
||||
export no_proxy="localhost,127.0.0.1,::1"
|
||||
export NO_PROXY="localhost,127.0.0.1,::1"
|
||||
|
||||
Reference in New Issue
Block a user