mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 00:01:10 +08:00
add docker login basic auth support
This commit is contained in:
parent
37488db087
commit
eb113b4191
7 changed files with 44 additions and 8 deletions
|
|
@ -169,10 +169,16 @@ type OutboundConfig struct {
|
|||
[docker]
|
||||
enabled = false
|
||||
target = "ghcr" # ghcr/dockerhub
|
||||
auth = false
|
||||
[docker.credentials]
|
||||
user1 = "testpass"
|
||||
test = "test123"
|
||||
*/
|
||||
type DockerConfig struct {
|
||||
Enabled bool `toml:"enabled"`
|
||||
Target string `toml:"target"`
|
||||
Enabled bool `toml:"enabled"`
|
||||
Target string `toml:"target"`
|
||||
Auth bool `toml:"auth"`
|
||||
Credentials map[string]string `toml:"credentials"`
|
||||
}
|
||||
|
||||
// LoadConfig 从 TOML 配置文件加载配置
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue