浏览代码

docs: issue.md

dqzboy 1 年之前
父节点
当前提交
ccfed7eb99
共有 2 个文件被更改,包括 1 次插入19 次删除
  1. 1 1
      Issue/issue.md
  2. 0 18
      install/DockerProxy_Install.sh

+ 1 - 1
Issue/issue.md

@@ -90,4 +90,4 @@ http {
  - [x] **已知问题:** Docker-Proxy部署的服务器上的存储空间不足。宿主机默认的挂载目录 `./registry/data`
 
  #### 10、开启认证后,配置`daemon.json`指定了代理地址,可以正常登入,但是`docker pull`镜像时无法拉取镜像
-  - [x] **已知问题:** 需要在Nginx或者Caddy 显性的配置`proxy_set_header Authorization` 认证信息,然后传递给后端服务 [issues](https://github.com/dqzboy/Docker-Proxy/issues/15)
+ - [x] **已知问题:** 目前确实是这样的,等待官方是否会进行修复

+ 0 - 18
install/DockerProxy_Install.sh

@@ -507,8 +507,6 @@ while true; do
         header_up X-Real-IP {remote_addr}
         header_up X-Forwarded-For {remote_addr}
         header_up X-Nginx-Proxy true
-        # 下面参数为了解决开启认证授权后,配置了daemon.json 无法通过docker pull 直接拉取镜像的问题
-        #header_up Authorization \"Basic auth_dockerhub\"
     }
 }"
             record_templates[ghcr]="ghcr.$caddy_domain {
@@ -517,7 +515,6 @@ while true; do
         header_up X-Real-IP {remote_addr}
         header_up X-Forwarded-For {remote_addr}
         header_up X-Nginx-Proxy true
-        #header_up Authorization \"Basic auth_ghcr\"
     }
 }"
             record_templates[gcr]="gcr.$caddy_domain {
@@ -526,7 +523,6 @@ while true; do
         header_up X-Real-IP {remote_addr}
         header_up X-Forwarded-For {remote_addr}
         header_up X-Nginx-Proxy true
-        #header_up Authorization \"Basic auth_gcr\"
     }
 }"
             record_templates[k8sgcr]="k8sgcr.$caddy_domain {
@@ -535,7 +531,6 @@ while true; do
         header_up X-Real-IP {remote_addr}
         header_up X-Forwarded-For {remote_addr}
         header_up X-Nginx-Proxy true
-        #header_up Authorization \"Basic auth_k8sgcr\"
     }
 }"
             record_templates[k8s]="k8s.$caddy_domain {
@@ -544,7 +539,6 @@ while true; do
         header_up X-Real-IP {remote_addr}
         header_up X-Forwarded-For {remote_addr}
         header_up X-Nginx-Proxy true
-        #header_up Authorization \"Basic auth_k8s\"
     }
 }"
             record_templates[quay]="quay.$caddy_domain {
@@ -553,7 +547,6 @@ while true; do
         header_up X-Real-IP {remote_addr}
         header_up X-Forwarded-For {remote_addr}
         header_up X-Nginx-Proxy true
-        #header_up Authorization \"Basic auth_quay \"
     }
 }"
             record_templates[mcr]="mcr.$caddy_domain {
@@ -562,7 +555,6 @@ while true; do
         header_up X-Real-IP {remote_addr}
         header_up X-Forwarded-For {remote_addr}
         header_up X-Nginx-Proxy true
-        #header_up Authorization \"Basic auth_mcr\"
     }
 }"
             record_templates[elastic]="elastic.$caddy_domain {
@@ -571,7 +563,6 @@ while true; do
         header_up X-Real-IP {remote_addr}
         header_up X-Forwarded-For {remote_addr}
         header_up X-Nginx-Proxy true
-        #header_up Authorization \"Basic auth_elastic\"
     }
 }"
             > /etc/caddy/Caddyfile
@@ -783,8 +774,6 @@ while true; do
         proxy_set_header X-Real-IP \$remote_addr;
         proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;        
         proxy_set_header X-Nginx-Proxy true;
-        # 下面参数为了解决开启认证授权后,配置了daemon.json 无法通过docker pull 直接拉取镜像的问题
-        #proxy_set_header Authorization \"Basic auth_hub_base64\";
         proxy_buffering off;
         proxy_redirect off;
     }
@@ -812,7 +801,6 @@ while true; do
         proxy_set_header X-Real-IP \$remote_addr;
         proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;        
         proxy_set_header X-Nginx-Proxy true;
-        #proxy_set_header Authorization \"Basic auth_ghcr\";
         proxy_buffering off;
         proxy_redirect off;
     }
@@ -840,7 +828,6 @@ while true; do
         proxy_set_header X-Real-IP \$remote_addr;
         proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;        
         proxy_set_header X-Nginx-Proxy true;
-        #proxy_set_header Authorization \"Basic auth_gcr\";
         proxy_buffering off;
         proxy_redirect off;
     }
@@ -868,7 +855,6 @@ while true; do
         proxy_set_header X-Real-IP \$remote_addr;
         proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;        
         proxy_set_header X-Nginx-Proxy true;
-        #proxy_set_header Authorization \"Basic auth_k8sgcr\";
         proxy_buffering off;
         proxy_redirect off;
     }
@@ -896,7 +882,6 @@ while true; do
         proxy_set_header X-Real-IP \$remote_addr;
         proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;        
         proxy_set_header X-Nginx-Proxy true;
-        #proxy_set_header Authorization \"Basic auth_k8s\";
         proxy_buffering off;
         proxy_redirect off;
     }
@@ -924,7 +909,6 @@ while true; do
         proxy_set_header X-Real-IP \$remote_addr;
         proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;        
         proxy_set_header X-Nginx-Proxy true;
-        #proxy_set_header Authorization \"Basic auth_quay\";
         proxy_buffering off;
         proxy_redirect off;
     }
@@ -952,7 +936,6 @@ while true; do
         proxy_set_header X-Real-IP \$remote_addr;
         proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;        
         proxy_set_header X-Nginx-Proxy true;
-        #proxy_set_header Authorization \"Basic auth_mcr\";
         proxy_buffering off;
         proxy_redirect off;
     }
@@ -980,7 +963,6 @@ while true; do
         proxy_set_header X-Real-IP \$remote_addr;
         proxy_set_header X-Forwarded-For \$proxy_add_x_forwarded_for;        
         proxy_set_header X-Nginx-Proxy true;
-        #proxy_set_header Authorization \"Basic auth_elastic\";
         proxy_buffering off;
         proxy_redirect off;
     }