From a3f5fc413f469f0a5b2270a16c1cf58e67dbb241 Mon Sep 17 00:00:00 2001 From: Pascal Date: Wed, 27 May 2020 16:30:10 -0400 Subject: [PATCH] [fix] rng() now outputs positive int and increased nginx name bucket - [fix] changed od flag from -i to -d to generate unsigned numbers - the param -i can create negative numbers in dash - [fix] increased server_names_hash_bucket_size to 64 - to accommodate for large domain names with (many) subdomains --- proxy/files/entrypoint.sh | 2 +- proxy/files/nginx.conf | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/proxy/files/entrypoint.sh b/proxy/files/entrypoint.sh index 5c518b0..0cbc6e8 100644 --- a/proxy/files/entrypoint.sh +++ b/proxy/files/entrypoint.sh @@ -126,7 +126,7 @@ function read_file() function rng() { - rng_n=$(od -An -N2 -i < /dev/urandom) + rng_n=$(od -An -N2 -d < /dev/urandom) echo $rng_n } diff --git a/proxy/files/nginx.conf b/proxy/files/nginx.conf index d595866..5013a92 100644 --- a/proxy/files/nginx.conf +++ b/proxy/files/nginx.conf @@ -15,7 +15,9 @@ http { scgi_temp_path /tmp/scgi_temp; client_max_body_size 1m; - + # set larger name bucket for large domain names + server_names_hash_bucket_size 64; + server { listen 8080 default_server;