Limit only GET method inside a nginx location

The parameter can be one of the following: GET, HEAD, POST, PUT, DELETE, MKCOL, COPY, MOVE, OPTIONS, PROPFIND, PROPPATCH, LOCK, UNLOCK, or PATCH.
Allowing the GET method makes the HEAD method also allowed. Example:

# HEAD is implicit - it's a just special case of GET
limit_except GET { deny  all; }