You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2020/11/23 13:54:22 UTC

[GitHub] [apisix] membphis commented on a change in pull request #2803: feat: support include other nginx config

membphis commented on a change in pull request #2803:
URL: https://github.com/apache/apisix/pull/2803#discussion_r528718118



##########
File path: .travis/apisix_cli_test.sh
##########
@@ -458,6 +458,64 @@ fi
 
 echo "passed: found 'my_dict' in nginx.conf"
 
+# allow injecting configuration snippets
+
+echo '
+apisix:
+    node_listen: 9080
+    enable_admin: true
+    port_admin: 9180
+    stream_proxy:
+        tcp:
+            - 9100
+nginx_config:

Review comment:
       How about this style? I think one level is enough and it looks simpler.
   
   ```yaml
   nginx_config:
       main_configuration_snippet: |
           daemon on;
       http_configuration_snippet: |
           chunked_transfer_encoding on;
       http_server_configuration_snippet: |
           set $my "var";
       http_admin_configuration_snippet: |
           log_format admin "$request_time $pipe";
       stream_configuration_snippet: |
           tcp_nodelay off;




----------------------------------------------------------------
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:
users@infra.apache.org