Skip to content

Commit 1c117a8

Browse files
committed
Allow long server names
1 parent b336df1 commit 1c117a8

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
@@ -97,7 +97,7 @@ spec:
9797
initContainers:
9898
- image: busybox:1.34 # FIXME(pleshakov): use gateway container to init the Config with proper main config
9999
name: nginx-config-initializer
100-
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 && (rm -r /etc/nginx/conf.d /etc/nginx/secrets; mkdir /etc/nginx/conf.d /etc/nginx/secrets && chown 1001:0 /etc/nginx/conf.d /etc/nginx/secrets)' ]
100+
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; server_names_hash_bucket_size 256; server_names_hash_max_size 1024; }" > /etc/nginx/nginx.conf && (rm -r /etc/nginx/conf.d /etc/nginx/secrets; mkdir /etc/nginx/conf.d /etc/nginx/secrets && chown 1001:0 /etc/nginx/conf.d /etc/nginx/secrets)' ]
101101
volumeMounts:
102102
- name: nginx-config
103103
mountPath: /etc/nginx

0 commit comments

Comments
 (0)