Skip to content

Commit ccb16eb

Browse files
authored
Configure NGINX error log (#319)
Error log will help us understand when and how NGINX gets reloaded and also see any error messages. The Debug level is useful while the project is still in the early stage of development.
1 parent 55b23d4 commit ccb16eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deploy/manifests/nginx-gateway.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ spec:
9090
initContainers:
9191
- image: busybox:1.34 # FIXME(pleshakov): use gateway container to init the Config with proper main config
9292
name: nginx-config-initializer
93-
command: [ 'sh', '-c', 'echo "load_module /usr/lib/nginx/modules/ngx_http_js_module.so; events {} pid /etc/nginx/nginx.pid; http { include /etc/nginx/conf.d/*.conf; js_import /usr/lib/nginx/modules/njs/httpmatches.js; }" > /etc/nginx/nginx.conf && mkdir /etc/nginx/conf.d /etc/nginx/secrets && chown 1001:0 /etc/nginx/conf.d /etc/nginx/secrets' ]
93+
command: [ 'sh', '-c', 'echo "load_module /usr/lib/nginx/modules/ngx_http_js_module.so; events {} pid /etc/nginx/nginx.pid; error_log stderr debug; http { include /etc/nginx/conf.d/*.conf; js_import /usr/lib/nginx/modules/njs/httpmatches.js; }" > /etc/nginx/nginx.conf && mkdir /etc/nginx/conf.d /etc/nginx/secrets && chown 1001:0 /etc/nginx/conf.d /etc/nginx/secrets' ]
9494
volumeMounts:
9595
- name: nginx-config
9696
mountPath: /etc/nginx

0 commit comments

Comments
 (0)