build: isolate go module proxy setting

This commit is contained in:
dela
2026-05-24 21:50:22 +08:00
parent 6f4e7f04cc
commit 622ff1d317
5 changed files with 15 additions and 9 deletions

View File

@@ -18,11 +18,12 @@ APP_ENV=production
BINANCE_BASE_URL=https://fapi.binance.com
# ---- Go module build ----
# 国内构建推荐 goproxy.cn海外可改为 https://proxy.golang.org,direct
GOPROXY=https://goproxy.cn,direct
# 国内构建推荐 goproxy.cn海外可改为 https://proxy.golang.org,direct
# 注意:这不是 HTTP 代理,不要填 http://127.0.0.1:7890。
GO_MODULE_PROXY=https://goproxy.cn,direct
# ---- 国内网络代理(如不需要可留空)----
# 例如 http://host.docker.internal:7890
# 例如 http://host.docker.internal:7890;不要填 127.0.0.1,容器里会指向容器自身。
HTTP_PROXY=
HTTPS_PROXY=
NO_PROXY=localhost,127.0.0.1,postgres,crypto-hermes-postgres