Open superb-sjlim opened 1 year ago
Will you try this?
nginx_config:
error_log: "/dev/stderr"
error_log_level: "warn"
worker_processes: "auto"
enable_cpu_affinity: true
worker_rlimit_nofile: 20480
event:
worker_connections: 10620
http_server_configuration_snippet: |
# Your server configuration snippet, if any
http:
enable_access_log: true
access_log: "/dev/stdout"
access_log_format: '$remote_addr - $remote_user [$time_local] $http_host "$request" $status $body_bytes_sent $request_time "$http_referer" "$http_user_agent" $upstream_addr $upstream_status $upstream_response_time "$upstream_scheme://$upstream_host$upstream_uri"'
access_log_format_escape: default
keepalive_timeout: "60s"
client_header_timeout: 70s
client_body_timeout: 60s
send_timeout: 60s
underscores_in_headers: "off"
client_header_buffer_size: 1k # Move this line here
real_ip_header: "X-Real-IP"
real_ip_from:
- 127.0.0.1
- 'unix:'
I don't think client_header_buffer_size is present in http_server_configuration_snippet context.
Hello,
I am trying to add some NGINX configuration using configmap but somehow the error is occurring right this,
What i added to under the nginx_conf..
I also tried to use the next snippets, main_configuration_snippet http_configuration_snippet http_end_configuration_snippet http_server_configuration_snippet http_admin_configuration_snippet but all snippet returned same error message.
Moreover, I even added it under the http section but it is not applied to the inside of nginx.conf file on K8s POD.
Could anyone can tell me what i am doing wrong?
Thank you in advance.