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 2019/11/14 07:54:38 UTC

[GitHub] [incubator-apisix] moonming commented on a change in pull request #855: Allow APISIX config more Nginx-built-in directives into nginx.conf

moonming commented on a change in pull request #855: Allow APISIX config more Nginx-built-in directives into nginx.conf
URL: https://github.com/apache/incubator-apisix/pull/855#discussion_r346165230
 
 

 ##########
 File path: conf/config.yaml
 ##########
 @@ -65,6 +65,11 @@ nginx_config:                     # config for render the template to genarate n
     client_header_timeout: 60s     # timeout for reading client request header, then 408 (Request Time-out) error is returned to the client
     client_body_timeout: 60s       # timeout for reading client request body, then 408 (Request Time-out) error is returned to the client
     send_timeout: 10s              # timeout for transmitting a response to the client.then the connection is closed
+  server:                          # set custusmized directives in nginx.conf server field  
+    server_tokens: on              # Enables emitting nginx version on error pages and in the "Server"
+    add_header: "API-Gateway-ID: '001'" # add custusmized header
+    underscores_in_headers: off    # Disable the use of underscores in client request header fields
+    client_body_buffer_size: 64k  # Sets buffer size for reading client request body
 
 Review comment:
   the default value is `16k`, why change it?

----------------------------------------------------------------
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


With regards,
Apache Git Services