zlhgo commented on issue #5596:
URL: https://github.com/apache/apisix/issues/5596#issuecomment-988449351


   ```
   diff --git a/apisix/cli/ngx_tpl.lua b/apisix/cli/ngx_tpl.lua
   index f5fa5d6e..523ae4d7 100644
   --- a/apisix/cli/ngx_tpl.lua
   +++ b/apisix/cli/ngx_tpl.lua
   @@ -573,6 +573,12 @@ http {
                set $ctx_ref                     '';
                set $from_error_page             '';
    
   +            # http server location configuration snippet starts
   +            {% if http_server_location_configuration_snippet then %}
   +            {* http_server_location_configuration_snippet *}
   +            {% end %}
   +            # http server location configuration snippet ends
   +
                {% if enabled_plugins["dubbo-proxy"] then %}
                set $dubbo_service_name          '';
                set $dubbo_service_version       '';
   diff --git a/conf/config-default.yaml b/conf/config-default.yaml
   index 7be15f92..3d089bdb 100644
   --- a/conf/config-default.yaml
   +++ b/conf/config-default.yaml
   @@ -191,6 +191,9 @@ nginx_config:                     # config for render 
the template to generate n
      http_server_configuration_snippet: |
        # Add custom Nginx http server configuration to nginx.conf.
        # The configuration should be well indented!
   +  http_server_location_configuration_snippet: |
   +    # Add custom Nginx http server location configuration to nginx.conf.
   +    # The configuration should be well indented!
      http_admin_configuration_snippet: |
        # Add custom Nginx admin server configuration to nginx.conf.
        # The configuration should be well indented!
   ```
   
   So simple?


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

To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to