fengxsong commented on code in PR #310:
URL: https://github.com/apache/apisix-helm-chart/pull/310#discussion_r910677682


##########
charts/apisix/templates/configmap.yaml:
##########
@@ -165,14 +165,16 @@ data:
     nginx_config:                     # config for render the template to 
genarate nginx.conf
       error_log: "{{ .Values.logs.errorLog }}"
       error_log_level: "{{ .Values.logs.errorLogLevel }}"         # warn,error
-      worker_rlimit_nofile: 20480     # the number of files a worker process 
can open, should be larger than worker_connections
+      worker_processes: "{{ .Values.nginx.workerProcesses }}"
+      enable_cpu_affinity: {{ default "true" .Values.nginx.enableCPUAffinity }}
+      worker_rlimit_nofile: {{ default "20480" 
.Values.nginx.workerRlimitNofile }}     # the number of files a worker process 
can open, should be larger than worker_connections
       event:
-        worker_connections: 10620
+        worker_connections: {{ default "10620" .Values.nginx.workerConnections 
 }}
       http:
         enable_access_log: {{ .Values.logs.enableAccessLog }}
         {{- if .Values.logs.enableAccessLog }}
         access_log: "{{ .Values.logs.accessLog }}"
-        access_log_format: "{{ .Values.logs.accessLogFormat }}"
+        access_log_format: '{{ .Values.logs.accessLogFormat }}'

Review Comment:
   single quote allows us not to escape value of `logs.accessLogFormat`, just 
`'{"remote_addr":"$remote_addr",...}'` not 
`'{\"remote_addr\":\"$remote_addr\",...}'`



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to