This nginx configuration allows to restrict access via different methods to separate users.
This is very useful for private docker registries, where you want every member of your team to be able to fetch Docker images, but only some users (admins and CI users) to push new images to the registry.
writecan use GET, POST, PUT, DELETE and everything else.
readcan only use GET and HEAD.
- Anonymous users are denied access entirely.