DaoCloud / crproxy

CRProxy (Container Registry Proxy) is a generic image proxy
MIT License
378 stars 98 forks source link

如何开启auth功能? #14

Closed IshootLaser closed 4 months ago

IshootLaser commented 5 months ago

看到有个commit支持了simple auth,这个怎么用呢?能否教一下。 谢谢!

wzshiming commented 5 months ago

添加 --simple-auth 就行了

wzshiming commented 4 months ago

在 0.9 支持自定义 user , 只有在 user 列表里的才能访问

https://github.com/DaoCloud/crproxy/blob/e0ec2047ee213b3261a58248397acadc867b0c84/examples/default/docker-compose.yml#L43-L46