Skip to content

Commit c221e84

Browse files
committed
Logging remote IP in proxies
1 parent 8180724 commit c221e84

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ RUN pecl install xdebug
241241
# Install PHP composer
242242
RUN cd /usr/local/bin \
243243
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
244-
&& php -r "if (hash_file('sha384', 'composer-setup.php') === 'e21205b207c3ff031906575712edab6f13eb0b361f2085f1f1237b7126d785e826a450292b6cfd1d64d92e6563bbde02') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
244+
&& php -r "if (hash_file('sha384', 'composer-setup.php') === 'dac665fdc30fdd8ec78b38b9800061b4150413ff2e3b6f88543c636f7cd84f6db9189d43a81e5503cda447da73c7e5b6') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" \
245245
&& php composer-setup.php \
246246
&& php -r "unlink('composer-setup.php');" \
247247
&& ln -s /usr/local/bin/composer.phar /usr/local/bin/composer

etc/conf/remoteip.conf

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
RemoteIPHeader X-Forwarded-For
2+

0 commit comments

Comments
 (0)