Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] 为部分的功能增加代理服务器 #5506

Open
ChishFoxcat opened this issue Jun 19, 2024 · 1 comment
Open

[FEATURE] 为部分的功能增加代理服务器 #5506

ChishFoxcat opened this issue Jun 19, 2024 · 1 comment
Assignees

Comments

@ChishFoxcat
Copy link

1Panel 版本

v1.10.10-lts

请描述您的需求或者改进建议

网站

  • 证书:申请证书增加代理连接

每次申请都跟玄学一样的,时好时坏。
image

容器

  • 配置:基础配置增加代理服务器

请描述你建议的实现方案

在 DockerCE v23.0 版本后,daemon.json 已支持添加代理

原文: https://docs.docker.com/config/daemon/systemd/

Container 代理

{
  "proxies": {
    "http-proxy": "http://proxy.example.com:3128",
    "https-proxy": "https://proxy.example.com:3129", 
    "no-proxy": "*.test.example.com,.example.org,127.0.0.0/8"
  }
}

Dockerd 代理

  1. 为服务创建 systemd 插入目录:docker
sudo mkdir -p /etc/systemd/system/docker.service.d
  1. 创建一个名为添加环境变量的文件:/etc/systemd/system/docker.service.d/http-proxy.conf
[Service]
Environment="HTTP_PROXY=http://proxy.example.com:3128"
Environment="HTTPS_PROXY=https://proxy.example.com:3129"
Environment="NO_PROXY=localhost,127.0.0.1,docker-registry.example.com,.corp"

附加信息

No response

@wanghe-fit2cloud
Copy link
Member

感谢反馈。

  1. 当前版本需要手动设置 Docker 代理,后续版本将支持自动配置 Docker 设置。
  2. 关于申请证书代理,我们将调研 Lego 的支持情况。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants