This commit is contained in:
WJQSERVER 2024-10-16 23:32:25 +08:00
parent 1c18ccc363
commit f77de0d37a
2 changed files with 12 additions and 1 deletions

View file

@ -7,7 +7,7 @@
[DEMO](https://ghproxy.1888866.xyz)
[TG讨论群](https://t.me/ghproxy_go)
[TG讨论群](https://t.me/ghproxy_go)
## 项目说明

View file

@ -103,6 +103,17 @@
header_up X-Forwarded-Proto {scheme}
header_up Authorization {http.request.header.Authorization}
}
}
route /auth* {
reverse_proxy https://auth.docker.io {
header_up Host auth.docker.io
header_up X-Real-IP {remote}
header_up X-Forwarded-For {http.request.header.X-Forwarded-For}
header_up X-Forwarded-Proto {scheme}
header_up Authorization {http.request.header.Authorization}
header_down Authorization
}
}
}