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 2021/01/06 07:29:41 UTC

[GitHub] [apisix] shenshaoye opened a new issue #3203: bug: 自定义nginx配置生成不正确

shenshaoye opened a new issue #3203:
URL: https://github.com/apache/apisix/issues/3203


   版本:apisix-master
   bug描述:
   我们使用apisix时需要加载一个第三方模块,把第三方模块编译成so文件,使用load_module指令加载进来,但是load_module指令需要写在event配置块前面,目前apisix提供的修改config-default.yaml文件,main_configuration_snippet的解析是在event配置块后面,因此使用load_module指令时会有问题;
   另外一个相似的include指令,有时需要include一个配置文件,在http块的末尾,但是现在http_configuration_snippet的解析位置在http块的server配置块的前面,可能会有问题;
   
   上述问题需要修改下ngx_tpl.lua生成nginx.conf的部分


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



[GitHub] [apisix] shenshaoye commented on issue #3203: bug: 自定义nginx配置生成不正确

Posted by GitBox <gi...@apache.org>.
shenshaoye commented on issue #3203:
URL: https://github.com/apache/apisix/issues/3203#issuecomment-755158952


   我觉得对于http块的配置,可以多开放几个http_configuration_snippet,以适应在生成的http块中的不同位置来添加自定义配置


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



[GitHub] [apisix] shenshaoye commented on issue #3203: bug: 自定义nginx配置生成不正确

Posted by GitBox <gi...@apache.org>.
shenshaoye commented on issue #3203:
URL: https://github.com/apache/apisix/issues/3203#issuecomment-755161807


   好的,我尝试修改一下


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



[GitHub] [apisix] spacewander commented on issue #3203: bug: 自定义nginx配置生成不正确

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #3203:
URL: https://github.com/apache/apisix/issues/3203#issuecomment-755160168


   Will you submit a pull request for it?
   Remember to update test in https://github.com/apache/apisix/blob/7c5df5d343ef79f9a292a8eb621fec72280d13ea/.travis/apisix_cli_test/test_main.sh#L659


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



[GitHub] [apisix] spacewander closed issue #3203: bug: 自定义nginx配置生成不正确

Posted by GitBox <gi...@apache.org>.
spacewander closed issue #3203:
URL: https://github.com/apache/apisix/issues/3203


   


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



[GitHub] [apisix] spacewander commented on issue #3203: bug: 自定义nginx配置生成不正确

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #3203:
URL: https://github.com/apache/apisix/issues/3203#issuecomment-755148389


   For the second one, what about adding new "http_configuration_after_snippet" for some order-matter directives?


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