From 9392d0e1e7da15c48e0a1440bffd9851b3aaef59 Mon Sep 17 00:00:00 2001 From: sbwml Date: Sun, 22 Feb 2026 03:28:28 +0800 Subject: [PATCH] luci-app-dockerman: add http/https proxy support Signed-off-by: sbwml --- .../resources/view/dockerman/configuration.js | 18 +++++++++++++ po/zh_Hans/dockerman.po | 27 +++++++++++++++++++ 2 files changed, 45 insertions(+) diff --git a/htdocs/luci-static/resources/view/dockerman/configuration.js b/htdocs/luci-static/resources/view/dockerman/configuration.js index 36392ca..b461093 100644 --- a/htdocs/luci-static/resources/view/dockerman/configuration.js +++ b/htdocs/luci-static/resources/view/dockerman/configuration.js @@ -71,6 +71,24 @@ return L.view.extend({ o.placeholder = '172.17.0.1/16'; o.datatype = 'ipaddr'; + o = s.taboption('globals', form.Value, 'http_proxy', + _('HTTP Proxy'), + _('Set the HTTP proxy for Docker (optional)')); + o.placeholder = _('Example: `http://proxy.example.com:3128`'); + o.rmempty = true; + + o = s.taboption('globals', form.Value, 'https_proxy', + _('HTTPS Proxy'), + _('Set the HTTPS proxy for Docker (optional)')); + o.placeholder = _('Example: `https://proxy.example.com:3128`'); + o.rmempty = true; + + o = s.taboption('globals', form.Value, 'no_proxy', + _('No Proxy (no_proxy)'), + _('Set addresses that bypass the proxy for Docker (optional, comma separated)')); + o.placeholder = _('Example: *.test.example.com,.example.org,127.0.0.0/8'); + o.rmempty = true; + o = s.taboption('globals', form.DynamicList, 'registry_mirrors', _('Registry Mirrors'), _('It replaces the daemon registry mirrors with a new set of registry mirrors')); diff --git a/po/zh_Hans/dockerman.po b/po/zh_Hans/dockerman.po index 9791ec8..dd51ebf 100644 --- a/po/zh_Hans/dockerman.po +++ b/po/zh_Hans/dockerman.po @@ -2467,3 +2467,30 @@ msgstr "实验性功能" msgid "Enable Docker experimental features." msgstr "启用 Docker 的实验性功能。" + +msgid "HTTP Proxy" +msgstr "HTTP 代理" + +msgid "Set the HTTP proxy for Docker (optional)" +msgstr "为 Docker 设置 HTTP 代理(可选)" + +msgid "Example: http://proxy.example.com:3128" +msgstr "示例:http://proxy.example.com:3128" + +msgid "HTTPS Proxy" +msgstr "HTTPS 代理" + +msgid "Set the HTTPS proxy for Docker (optional)" +msgstr "为 Docker 设置 HTTPS 代理(可选)" + +msgid "Example: https://proxy.example.com:3128" +msgstr "示例:https://proxy.example.com:3128" + +msgid "No Proxy (no_proxy)" +msgstr "不使用代理的地址 (no_proxy)" + +msgid "Set addresses that bypass the proxy for Docker (optional, comma separated)" +msgstr "为 Docker 设置不走代理的地址列表(可选,英文逗号分隔)" + +msgid "Example: *.test.example.com,.example.org,127.0.0.0/8" +msgstr "示例:*.test.example.com,.example.org,127.0.0.0/8"