[英]Can't update/install using composer behind a corporate firewall
我正在嘗試讓作曲家在我們的服務器上工作,但是在嘗試安裝/更新存儲庫時仍然遇到問題。
我已經正確配置了環境變量以實現所有這些目標:
http_proxy=http://fastweb.int.bell.ca:8083/
ftp_proxy=ftp://fastweb.int.bell.ca:8083/
HTTP_PROXY_REQUEST_FULLURI=false
我還強迫作曲家僅使用配置指令使用HTTPS協議:
"config": {
"github-protocols": ["https"]
}
我們通過設置GIT_SSL_NO_VERIFY或更新/ etc / pki / tls / certs中的ca-bundle.crt, 嘗試在SSL證書被拒絕嘗試通過防火牆后的HTTPS訪問GitHub后更新ca_bundle。
似乎沒有任何效果!
這是輸出,它對所有軟件包都執行此操作,我嘗試使用--prefer-source和不使用--prefer-source只是為了查看它是否有幫助,仍然沒有任何效果...
./composer.phar update Loading composer repositories with package
information Updating dependencies (including require-dev)
- Updating crazycodr/data-transform (dev-master 11f8499 => 2.0.2)
Checking out 11f8499d0027468705fca72ab67acfbf8ee2e6be
[RuntimeException] Failed to clone
https://github.com/crazycodr/data-transform.git via git, https and
http protocols, aborting.
- https://github.com/crazycodr/data-transform.git
fatal: https://github.com/crazycodr/data-transform.git/info/refs?service=git-upload-pack not found: did you run git update-server-info on the server?
我確認能夠在防火牆后克隆/拉動/推送GitHub存儲庫。
而且除了http_proxy
之外,您還需要https_proxy
:
set http_proxy=http://<login_internet>:<password_internet>@aproxy:aport
set https_proxy=http://<login_internet>:<password_internet>@aproxy:aport
set no_proxy=.company
(其中的no_proxy
部分可以避免將代理用於公司內部的內部url)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.