Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[solved]Unraid HTTP代理问题

Featured Replies

为了加速网络访问,我在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

  • 1 month later...
  • Author

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

  • uniartisan changed the title to [solved]Unraid HTTP代理问题
  • 1 month later...

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

 

  • 2 weeks later...
  • Author
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. :(

  • 1 year later...
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
回答问题

  • 5 months later...
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

哈哈哈,就是我。 proxy.cfg只能解决ca页面本身的问题,用的curl ,curl会读取proxy.cfg

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.