You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apisix.apache.org by 李凌Lien <li...@qq.com> on 2019/11/14 01:11:52 UTC
回复: [DISCUSS] how to allow APISIX config more Nginx-built-in directives
here is content of the pciture
And the comfig.yaml is like below
nginx_config: # config for render the template to genarate nginx.conf
error_log: "logs/error.log"
error_log_level: "warn" # warn,error
event:
worker_connections: 10620
http:
access_log: "logs/access.log"
keepalive_timeout: 60s # timeout during which a keep-alive client connection will stay open on the server side.
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:
underscores_in_headers: on
Mail from Lien
------------------ 原始邮件 ------------------
发件人: "Ming Wen"<wenming@apache.org>;
发送时间: 2019年11月13日(星期三) 晚上11:36
收件人: "dev"<dev@apisix.apache.org>;
主题: Re: [DISCUSS] how to allow APISIX config more Nginx-built-in directives
Hi, lilien,
The picture cannot be displayed on my side, please use text in email.
Thanks,
Ming Wen, Apache APISIX
Twitter: _WenMing
<lilien3838@qq.com> 于2019年11月13日周三 下午6:01写道:
>
>
> Hi guys.
>
> recently I am transfer some of my old Application from pure nginx into
> APISIX, but I meet a some issue about Directives configuration,
>
> for exmaple: in nginx.conf we have a config
>
> underscores_in_headers off
>
>
>
> which allow nginx take underscore in head , while some of our old
> application count on that feature.
>
>
>
> but after we transfer it into APISIX in docker, we are not allowed to
> edit nginx.conf mannuly(unless we edit /usr/bin/apisix)
>
>
>
> I come up with a idea to allow user to make any custumized configration
> with nginx-built-in directives.
>
>
>
> add a sub field named server into nginx_conf field.
>
>
>
> Then redener it into nginx.conf with a loop.
>
>
>
> And the comfig.yaml is like below
>
>
Re: [DISCUSS] how to allow APISIX config more Nginx-built-in directives
Posted by Ming Wen <we...@apache.org>.
Hi, Lien,
The content of the email is mostly garbled. Please check your email client.
It is recommended to use plain text mode instead of html mode.
Thanks,
Ming Wen, Apache APISIX
Twitter: _WenMing
李凌Lien <li...@qq.com> 于2019年11月14日周四 上午9:12写道:
> here is content of the pciture
> And the comfig.yaml is like below
>
>
> nginx_config:
> # config for render the template to genarate nginx.conf
> error_log: "logs/error.log"
> error_log_level: "warn" #
> warn,error
> event:
> worker_connections: 10620
> http:
> access_log: "logs/access.log"
> keepalive_timeout: 60s
> # timeout during which a keep-alive client connection will stay open
> on the server side.
> 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:
> underscores_in_headers: on
>
>
>
>
> Mail from Lien
>
>
>
>
>
>
>
> ------------------ 原始邮件 ------------------
> 发件人: "Ming Wen"<wenming@apache.org>;
> 发送时间: 2019年11月13日(星期三) 晚上11:36
> 收件人: "dev"<dev@apisix.apache.org>;
>
> 主题: Re: [DISCUSS] how to allow APISIX config more Nginx-built-in
> directives
>
>
>
> Hi, lilien,
> The picture cannot be displayed on my side, please use text in email.
>
> Thanks,
> Ming Wen, Apache APISIX
> Twitter: _WenMing
>
>
> <lilien3838@qq.com> 于2019年11月13日周三 下午6:01写道:
>
> >
> >
> > Hi guys.
> >
> > recently I am transfer some of my old Application from pure nginx into
> > APISIX, but I meet a some issue about Directives configuration,
> >
> > for exmaple: in nginx.conf we have a config
> >
> > underscores_in_headers off
> >
> >
> >
> > which allow nginx take underscore in head , while some of
> our old
> > application count on that feature.
> >
> >
> >
> > but after we transfer it into APISIX in docker, we
> are not allowed to
> > edit nginx.conf mannuly(unless we edit /usr/bin/apisix)
> >
> >
> >
> > I come up with a idea to allow user to make any
> custumized configration
> > with nginx-built-in directives.
> >
> >
> >
> > add a sub field named server into nginx_conf field.
> >
> >
> >
> > Then redener it into nginx.conf with a loop.
> >
> >
> >
> > And the comfig.yaml is like below
> >
> >