Skip to content
Open
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
2 changes: 1 addition & 1 deletion post-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ add_apache_remoteip_config() {

awk '
$0 ~ /^# SPIN_APACHE_REMOTEIP_BLOCK$/ {
print "RUN a2enmod remoteip headers"
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of scope for this PR but should also adapt this if this is merged: serversideup/docker-php#667

print "RUN a2enmod remoteip headers expires"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

Adding the expires module here makes the function add_apache_remoteip_config and the placeholder # SPIN_APACHE_REMOTEIP_BLOCK's names misleading, as they now handle more than just remoteip configuration. This can create confusion and impact maintainability. Consider refactoring this by renaming the function and placeholder to something more generic (e.g., configure_apache and SPIN_APACHE_CONFIG_BLOCK) and updating the log message on line 84 to reflect the change.

print "COPY ./.infrastructure/conf/apache/remoteip.conf /etc/apache2/conf-available/remoteip.conf"
print "RUN a2enconf remoteip"
next
Expand Down