[solved]Unraid HTTP代理问题


Recommended Posts

为了加速网络访问,我在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日志内没有显示流量信息。

591816042_.png.653463e49f420b9d9e6a82c14f73519c.png

688234933_.png.4a8678c69d308d0d1237ee356cfab1c4.png

日志信息里只有docker,没有github的相关域名,我的系统是6.9-rc2

Edited by uniartisan
solved
Link to comment
  • 1 month later...

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 by uniartisan
Link to comment
  • uniartisan changed the title to [solved]Unraid HTTP代理问题
  • 1 month later...
  • 2 weeks later...
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. :(

Link to comment
  • 1 year later...
Posted (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日志内没有显示流量信息。

591816042_.png.653463e49f420b9d9e6a82c14f73519c.png

688234933_.png.4a8678c69d308d0d1237ee356cfab1c4.png

日志信息里只有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 by SwordRays
回答问题
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.