We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a62080 commit 549b48eCopy full SHA for 549b48e
README.md
@@ -490,6 +490,20 @@ tnt_http_rest_methods
490
491
**context:** *location*
492
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
507
Allow to accept one or more REST methods.
508
If `tnt_method` is not set, then the name of the Tarantool stored procedure is
509
the first part of the URL path.
0 commit comments