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/05 07:53:25 UTC

[GitHub] [apisix] griffenliu commented on issue #2634: I don't want to set up different config-default.yaml for different environments

griffenliu commented on issue #2634:
URL: https://github.com/apache/apisix/issues/2634#issuecomment-722207573


   I has the second problem: when i custom config in the config.yaml. it can't merge. and has some errors.
   I found the problem code in the apisix script:
   ```
   local function merge_conf(base, new_tab)
       for key, val in pairs(new_tab) do
           if type(val) == "table" then
               if tab_is_array(val) then
                   base[key] = val
               else
                   merge_conf(base[key], val)
               end
           else
               base[key] = val
           end
       end
       return base
   end
   ```
   can we add custom config support in the config.yaml?


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