Skip to content

Commit

Permalink
Release 6.4.8 - See CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tiredofit committed Jan 23, 2024
1 parent c2d752a commit fa570f9
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 6.4.8 2024-01-23 <dave at tiredofit dot ca>

### Added
- Add NGINX_SERVER_NAMES_HASH_BUCKET_SIZE environment variable


## 6.4.7 2023-12-08 <dave at tiredofit dot ca>

### Added
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ The following image tags are available along with their tagged release based on
| latest | `:latest` | latest | `:debian` |
| latest | `:alpine` | Bookworm | `:debian-bookworm ` |
| edge | `:alpine-edge` | Bullseye | `:debian-bullseye` |
| 3.19 | `:alpine-3.18` | Buster | `:debian-buster` |
| 3.19 | `:alpine-3.19` | Buster | `:debian-buster` |
| 3.18 | `:alpine-3.18` | | |
| 3.16 | `:alpine-3.16` | | |
| 3.15 | `:alpine-3.15` | | |
Expand Down Expand Up @@ -329,6 +329,7 @@ You can also enter into the container and type `maintenance ARG`, where ARG is e
| `NGINX_UPSTREAM_KEEPALIVE` | Keepalive connections to utilize for upstream | `32` |
| `NGINX_FASTCGI_BUFFERS` | Amount of FastCGI Buffers | `16 16k` |
| `NGINX_FASTCGI_BUFFER_SIZE` | FastCGI Buffer Size | `32k` |
| `NGINX_SERVER_NAMES_HASH_BUCKET_SIZE` | Server names hash size (`256`` if `NGINX_ENABLE_BLOCK_BOTS=TRUE`) | `32` |

### Networking

Expand Down
1 change: 1 addition & 0 deletions install/assets/defaults/10-nginx
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ NGINX_PROXY_BUSY_BUFFERS_SIZE=${NGINX_PROXY_BUSY_BUFFERS_SIZE:-"256k"}
NGINX_REAL_IP_HEADER=${NGINX_REAL_IP_HEADER:-"X-Forwarded-For"}
NGINX_RELOAD_ON_CONFIG_CHANGE=${NGINX_RELOAD_ON_CONFIG_CHANGE:-"FALSE"}
NGINX_SEND_TIMEOUT=${NGINX_SEND_TIMEOUT:-60}
NGINX_SERVER_NAMES_HASH_BUCKET_SIZE=${NGINX_SERVER_NAMES_HASH_BUCKET_SIZE:-"32"}
NGINX_SET_REAL_IP_FROM=${NGINX_SET_REAL_IP_FROM:-"172.16.0.0/12"}
NGINX_UPLOAD_MAX_SIZE=${NGINX_UPLOAD_MAX_SIZE:-"2G"}
NGINX_UPSTREAM_KEEPALIVE=${NGINX_UPSTREAM_KEEPALIVE:-"32"}
Expand Down
1 change: 1 addition & 0 deletions install/assets/functions/10-nginx
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,7 @@ nginx_configure_server() {
NGINX_KEEPALIVE_REQUESTS \
NGINX_KEEPALIVE_TIMEOUT \
NGINX_SEND_TIMEOUT \
NGINX_SERVER_NAMES_HASH_BUCKET_SIZE \
NGINX_PROXY_BUFFERS \
NGINX_PROXY_BUFFER_SIZE \
NGINX_PROXY_BUSY_BUFFERS_SIZE \
Expand Down
7 changes: 6 additions & 1 deletion install/etc/cont-init.d/10-nginx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ if [ ! -f "/tmp/.container/container-restart" ] ; then
nginx_configure_mode
nginx_configure_server
nginx_configure_authentication
if var_true "${NGINX_ENABLE_BLOCK_BOTS}" ; then nginx_configure_blockbots ; else sed -i "\|include /etc/nginx/snippets/bot_blocker.conf;|d" /etc/nginx/nginx.conf ; fi
if var_true "${NGINX_ENABLE_BLOCK_BOTS}" ; then
sed -i "/server_names_hash_bucket_size/d" /etc/nginx/nginx.conf
nginx_configure_blockbots
else
sed -i "\|include /etc/nginx/snippets/bot_blocker.conf;|d" /etc/nginx/nginx.conf
fi
nginx_configure_logging
nginx_configure_maintenance

Expand Down
2 changes: 2 additions & 0 deletions install/etc/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ http {
proxy_buffers {{NGINX_PROXY_BUFFERS}};
proxy_busy_buffers_size {{NGINX_PROXY_BUSY_BUFFERS_SIZE}};

server_names_hash_bucket_size {{NGINX_SERVER_NAMES_HASH_BUCKET_SIZE}};

server_tokens off;
more_clear_headers Server;

Expand Down

0 comments on commit fa570f9

Please sign in to comment.