Skip to content

Commit 1e4ed52

Browse files
committed
Release 7.5.3 - See CHANGELOG.md
1 parent e11a8ba commit 1e4ed52

File tree

5 files changed

+17
-5
lines changed

5 files changed

+17
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 7.5.3 2023-03-23 <dave at tiredofit dot ca>
2+
3+
### Added
4+
- Introduce PHP_HIDE_X_POWERED_BY variable
5+
6+
17
## 7.5.2 2023-03-20 <dave at tiredofit dot ca>
28

39
### Added

Dockerfile.debian

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ LABEL maintainer="Dave Conroy (dave at tiredofit dot ca)"
66

77
ARG PHP_BASE
88

9-
ENV PHP_BASE=${PHP_BASE:-"8.0"} \
9+
ENV PHP_BASE=${PHP_BASE:-"8.2"} \
1010
PHP_ENABLE_APCU=TRUE \
1111
PHP_ENABLE_BCMATH=TRUE \
1212
PHP_ENABLE_BZ2=TRUE \

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,18 @@ Builds of the image are available on [Docker Hub](https://hub.docker.com/r/tired
7676
docker pull docker.io/tiredofdit/nginx-php-fpm:(imagetag)
7777
```
7878

79-
Builds of the image are also available on the [Github Container Registry](https://github.com/tiredofit/docker-nginx-php-fpm/pkgs/container/docker-nginx-php-fpm)
80-
79+
Builds of the image are also available on the [Github Container Registry](https://github.com/tiredofit/docker-nginx-php-fpm/pkgs/container/docker-nginx-php-fpm)
80+
8181
```
8282
docker pull ghcr.io/tiredofit/docker-nginx-php-fpm:(imagetag)
83-
```
83+
```
8484

8585
The following image tags are available along with their tagged release based on what's written in the [Changelog](CHANGELOG.md):
8686

8787
| PHP version | Alpine Base | Tag | Debian Base | Tag |
8888
| ----------- | ----------- | -------------- | ----------- | ------------- |
8989
| latest | edge | `:alpine-edge` | | |
90-
| 8.2.x | edge | `:alpine-8.1` | Bullseye | `:debian-8.2` |
90+
| 8.2.x | edge | `:alpine-8.2` | Bullseye | `:debian-8.2` |
9191
| 8.1.x | 3.17 | `:alpine-8.1` | Buster | `:debian-8.1` |
9292
| 8.0.x | 3.16 | `:alpine-8.0` | Buster | `:debian-8.0` |
9393
| 7.4.x | 3.15 | `:alpine-7.4` | Buster | `:debian-7.3` |
@@ -203,6 +203,7 @@ When `PHP_FPM_CONTAINER_MODE` set to `nginx` the `PHP_FPM_LISTEN_PORT` environme
203203
| `PHP_FPM_POST_INIT_SCRIPT` | If you wish to execute a script before php-fpm executes, enter it here and seperate multiples by comma. | |
204204
| `PHP_FPM_PROCESS_MANAGER` | How to handle processes `static`, `ondemand`, `dynamic` | `dynamic` |
205205
| `PHP_FPM_START_SERVERS` | How many FPM servers to start initially | `2` |
206+
| `PHP_HIDE_X_POWERED_BY` | Hide X-Powered by response | `TRUE` |
206207
| `PHP_LOG_ACCESS_FILE` | PHP Access Logfile Name | `access.log` |
207208
| `PHP_LOG_ERROR_FILE` | Logfile name | `error.log` |
208209
| `PHP_LOG_LEVEL` | PHP Log Level `alert` `error` `warning` `notice` `debug` | `notice` |

install/assets/defaults/20-php-fpm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ PHP_APC_TTL=${PHP_APC_TTL:-"7200"}
77
PHP_FPM_CONTAINER_MODE=${PHP_FPM_CONTAINER_MODE:-"nginx-php-fpm"}
88
PHP_DISPLAY_ERRORS=${PHP_DISPLAY_ERRORS:-"TRUE"}
99
PHP_ENABLE_CREATE_SAMPLE_PHP=${PHP_ENABLE_CREATE_SAMPLE_PHP:-"TRUE"}
10+
PHP_HIDE_X_POWERED_BY=${PHP_HIDE_X_POWERED_BY:-"TRUE"}
1011
PHP_KITCHENSINK=${PHP_KITCHENSINK:-"FALSE"}
1112
PHP_FPM_HOST=${PHP_FPM_HOST:-"127.0.0.1"}
1213
PHP_FPM_LISTEN_PORT=${PHP_FPM_LISTEN_PORT:-"9000"}

install/assets/functions/20-php-fpm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ phpfpm_configure_nginx() {
177177
-e "/# Do not delete - Upstream Configuration/a\ \ \ \ include \/etc\/nginx\/snippets\/php-fpm-upstream.conf;" \
178178
-e "/# Do not delete - Upstream Configuration/a\ \ \ \ ### PHP-FPM Multiple Handlers configuration" \
179179
/etc/nginx/nginx.conf
180+
181+
if var_true "${PHP_HIDE_X_POWERED_BY}" ; then
182+
sed -i "/fastcgi_buffer_size/a \ fastcgi_hide_header X-Powered-By;" /etc/nginx/nginx.conf
183+
fi
180184
}
181185

182186
phpfpm_configure_server() {

0 commit comments

Comments
 (0)