Skip to content

Commit 549b48e

Browse files
committed
#115 fixed
1 parent 1a62080 commit 549b48e

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,20 @@ tnt_http_rest_methods
490490

491491
**context:** *location*
492492

493+
**NOTICE:**
494+
This does not restrict anything. The option just says to NGINX:
495+
use this methods for allowing REST requests.
496+
497+
If you have a wish to set some methods as not allowed methods, then
498+
please use "if" inside locations.
499+
500+
For example:
501+
```nginx
502+
if ($request_method !~ ^(GET|POST|HEAD)$) {
503+
return 405 "Please use HEAD, PATCH and so on";
504+
}
505+
```
506+
493507
Allow to accept one or more REST methods.
494508
If `tnt_method` is not set, then the name of the Tarantool stored procedure is
495509
the first part of the URL path.

0 commit comments

Comments
 (0)