uniartisan Posted January 10, 2021 Share Posted January 10, 2021 (edited) 为了加速网络访问,我在docker配置了V2ray,并且设置了环境变量,按照官方教程设置了unraid全局代理。 配置如下: /boot/config/go http_proxy=http://127.0.0.1:9000 HTTPS_PROXY=http://127.0.0.1:9000 /usr/local/sbin/emhttp & echo "export http_proxy=\"http://127.0.0.1:9000\"" >> /root/.bash_profile echo "export https_proxy=\"http://127.0.0.1:9000\"" >> /root/.bash_profile 实际看日志发现: Docker 的pull会通过代理,但是应用商店和更新插件没有通过代理,仍然显示网络失败,docker日志内没有显示流量信息。 日志信息里只有docker,没有github的相关域名,我的系统是6.9-rc2 Edited March 7, 2021 by uniartisan solved Quote Link to comment
uniartisan Posted March 7, 2021 Author Share Posted March 7, 2021 (edited) Solved by : nano /boot/config/go http_proxy=http://server:port https_proxy=http://server:port /usr/local/sbin/emhttp & echo "export http_proxy=\"http://server:port\"" >> /root/.bash_profile echo "export https_proxy=\"http://server:port\"" >> /root/.bash_profile Edited March 7, 2021 by uniartisan Quote Link to comment
PatrickMSD Posted April 28, 2021 Share Posted April 28, 2021 Hi uniartisan, i have the same isue, but adding the export parameters to the go file does not solve the problem. Is there something else to change or add? Thank you very much Best regards Patrick Quote Link to comment
uniartisan Posted May 7, 2021 Author Share Posted May 7, 2021 On 4/28/2021 at 4:08 PM, PatrickMSD said: Hi uniartisan, i have the same isue, but adding the export parameters to the go file does not solve the problem. Is there something else to change or add? Thank you very much Best regards Patrick After upgrade to 6.9.2, the issue occurs. Quote Link to comment
SwordRays Posted May 20, 2022 Share Posted May 20, 2022 (edited) On 1/10/2021 at 3:59 PM, uniartisan said: 为了加速网络访问,我在docker配置了V2ray,并且设置了环境变量,按照官方教程设置了unraid全局代理。 配置如下: /boot/config/go http_proxy=http://127.0.0.1:9000 HTTPS_PROXY=http://127.0.0.1:9000 /usr/local/sbin/emhttp & echo "export http_proxy=\"http://127.0.0.1:9000\"" >> /root/.bash_profile echo "export https_proxy=\"http://127.0.0.1:9000\"" >> /root/.bash_profile 实际看日志发现: Docker 的pull会通过代理,但是应用商店和更新插件没有通过代理,仍然显示网络失败,docker日志内没有显示流量信息。 日志信息里只有docker,没有github的相关域名,我的系统是6.9-rc2 虽然已经过去很久了,但是看到没有有效答案(在英文论坛有解决方案),我还是答一下吧,给其他人做个提示。 实测在6.8和6.10rc版本上配置http全局代理以及emhttp代理之后,应用商店下载应用、插件更新、docker列表图标等都能走代理。 但是6.9.x(未验证)和6.10.0存在bug,应用商店和插件列表的检查更新功能不走全局代理,需要单独配置。 vi /boot/config/plugins/community.applications/proxy.cfg,填入如下内容 port=1080 tunnel=1 #proxy=http://127.0.0.1 proxy=socks5://127.0.0.1 至于docker列表的图标(很多是放在github的资源站上的)不显示貌似也是不走全局代理的问题,但考虑到docker有很多都是网络服务,走代理不太好,目前就手动改图标为非github地址了。 Edited May 20, 2022 by SwordRays 回答问题 2 Quote Link to comment
xffish Posted October 21, 2022 Share Posted October 21, 2022 On 5/20/2022 at 3:00 PM, SwordRays said: 虽然已经过去很久了,但是看到没有有效答案(在英文论坛有解决方案),我还是答一下吧,给其他人做个提示。 实测在6.8和6.10rc版本上配置http全局代理以及emhttp代理之后,应用商店下载应用、插件更新、docker列表图标等都能走代理。 但是6.9.x(未验证)和6.10.0存在bug,应用商店和插件列表的检查更新功能不走全局代理,需要单独配置。 vi /boot/config/plugins/community.applications/proxy.cfg,填入如下内容 port=1080 tunnel=1 #proxy=http://127.0.0.1 proxy=socks5://127.0.0.1 至于docker列表的图标(很多是放在github的资源站上的)不显示貌似也是不走全局代理的问题,但考虑到docker有很多都是网络服务,走代理不太好,目前就手动改图标为非github地址了。 原来还有这个proxy.cfg文件。我看到英文论坛提到了高版本用wget,所以对emhttp设置代理无效。对wget设置代理也可以生效。 另外参阅 https://www.bilibili.com/read/cv14677590 和本贴关键一步是一样的,都是修改proxy.cfg Quote Link to comment
linfanne Posted October 25, 2022 Share Posted October 25, 2022 哈哈哈,就是我。 proxy.cfg只能解决ca页面本身的问题,用的curl ,curl会读取proxy.cfg Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.