juzhiyuan commented on a change in pull request #3264:
URL: https://github.com/apache/apisix/pull/3264#discussion_r556252413



##########
File path: doc/stand-alone.md
##########
@@ -228,3 +228,70 @@ ssl:
             - "yourdomain.com"
 #END
 ```
+
+#### How to config global rule

Review comment:
       `configure` is a variable :)

##########
File path: doc/stand-alone.md
##########
@@ -228,3 +228,70 @@ ssl:
             - "yourdomain.com"
 #END
 ```
+
+#### How to config global rule

Review comment:
       ```suggestion
   #### How to configure a global rule
   ```

##########
File path: doc/stand-alone.md
##########
@@ -228,3 +228,70 @@ ssl:
             - "yourdomain.com"
 #END
 ```
+
+#### How to config global rule
+
+```yaml
+global_rules:
+    -
+        id: 1
+        plugins:
+            response-rewrite:
+                body: "hello\n"
+```
+
+#### How to config consumer
+
+```yaml
+consumers:
+  - username: jwt
+    plugins:
+        jwt-auth:
+            key: user-key
+            secret: my-secret-key
+```
+
+#### How to config plugin metadata
+
+```yaml
+upstreams:
+  - id: 1
+    nodes:
+      "127.0.0.1:1980": 1
+    type: roundrobin
+routes:
+  -
+    uri: /hello
+    upstream_id: 1
+    plugins:
+        http-logger:
+            batch_max_size: 1
+            uri: http://127.0.0.1:1980/log
+plugin_metadata:
+  - id: http-logger # note the id is the plugin name

Review comment:
       Do we have clear documentation about this tip?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to