Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

Summary of release changes.

### 2.2.2 - Unreleased

- Adds PHP 5 applicable session settings into service configuration.

### 2.2.1 - 2019-07-28

- Updates php-hello-world to [0.13.0](https://github.com/jdeathe/php-hello-world/releases/tag/0.13.0).
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ ADD src /
# - Disable all Apache modules and enable the minimum
# - Disable the default SSL Virtual Host
# - Disable SSL
# - Add default PHP configuration overrides to 00-php.ini drop-in.
# - Add default PHP configuration overrides to 00-php.ini drop-in
# - PHP OPcache configuration
# - Replace placeholders with values in systemd service unit template
# - Set permissions
# ------------------------------------------------------------------------------
Expand Down Expand Up @@ -169,6 +170,8 @@ RUN useradd -r -M -d /var/www/app -s /sbin/nologin app \
-e 's~^;?(realpath_cache_size( )?=).*$~\1\24096k~' \
-e 's~^;?(realpath_cache_ttl( )?=).*$~\1\2600~' \
-e 's~^;?(session.cookie_httponly( )?=).*$~\1\21~' \
-e 's~^;?(session.hash_bits_per_character( )?=).*$~\1\25~' \
-e 's~^;?(session.hash_function( )?=).*$~\1\2sha256~' \
-e 's~^;?(session.name( )?=).*$~\1\2"${PHP_OPTIONS_SESSION_NAME:-PHPSESSID}"~' \
-e 's~^;?(session.save_handler( )?=).*$~\1\2"${PHP_OPTIONS_SESSION_SAVE_HANDLER:-files}"~' \
-e 's~^;?(session.save_path( )?=).*$~\1\2"${PHP_OPTIONS_SESSION_SAVE_PATH:-/var/lib/php/session}"~' \
Expand Down