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


 




------------------ ???????? ------------------
??????:&nbsp;"Ming Wen"<[email protected]&gt;;
????????:&nbsp;2019??11??13??(??????) ????11:36
??????:&nbsp;"dev"<[email protected]&gt;;

????:&nbsp;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


<[email protected]&gt; ??2019??11??13?????? ????6:01??????

&gt;
&gt;
&gt; Hi guys.
&gt;
&gt; recently I am transfer some of my old Application from pure nginx into
&gt; APISIX, but I meet a some issue about Directives configuration,
&gt;
&gt;&nbsp;&nbsp;&nbsp; for exmaple: in nginx.conf we have a config
&gt;
&gt;&nbsp;&nbsp;&nbsp;&nbsp; underscores_in_headers off
&gt;
&gt;
&gt;
&gt;&nbsp;&nbsp; which allow nginx take underscore in head , while some of our 
old
&gt; application count on that feature.
&gt;
&gt;
&gt;
&gt;&nbsp;&nbsp; but after&nbsp; we transfer it into APISIX in docker, we are 
not allowed to
&gt; edit nginx.conf mannuly(unless we edit /usr/bin/apisix)
&gt;
&gt;
&gt;
&gt;&nbsp;&nbsp; I come up with a idea to allow user to make any custumized 
configration
&gt; with nginx-built-in directives.
&gt;
&gt;
&gt;
&gt;&nbsp;&nbsp; add a sub field named server into nginx_conf field.
&gt;
&gt;
&gt;
&gt;&nbsp;&nbsp;&nbsp; Then redener it into nginx.conf with a loop.
&gt;
&gt;
&gt;
&gt; And the comfig.yaml is like below
&gt;
&gt;

Reply via email to