File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -18,17 +18,16 @@ ENV \
1818 XDEBUG_VERSION="-3.2.1" \
1919 XDEBUG_REMOTE_PORT=9000 \
2020 PHP_EXTENSION_WDDX=1 \
21- PHP_OPENSSL=1
22-
23- ENV CONTAINER_STARTED_LOCK=/var/lock/container.starting
21+ PHP_OPENSSL=1 \
22+ CONTAINER_STARTED_LOCK=/var/lock/container.starting
2423
2524RUN apt-get update && apt-get install -y --no-install-recommends wget vim supervisor libfreetype6-dev libjpeg-dev libjpeg62-turbo-dev \
2625 libmcrypt-dev libpng-dev libssl-dev libaio1 git libcurl4-openssl-dev libxslt-dev \
2726 libldap2-dev libicu-dev libc-client-dev libkrb5-dev libsqlite3-dev libedit-dev \
2827 sudo zlib1g zlib1g-dev libzip4 libzip-dev zip unzip librabbitmq-dev musl-dev && \
2928 rm -rf /var/lib/apt/lists/*
3029
31- RUN a2enmod rewrite unique_id
30+ RUN a2enmod rewrite unique_id headers
3231
3332RUN docker-php-ext-configure gd --with-jpeg \
3433 && docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
@@ -84,6 +83,7 @@ RUN echo "---> Fix permissions" \
8483 && mkdir /var/www/.composer && chown -R www-data:www-data /var/www/.composer
8584
8685COPY configs/ports.conf /etc/apache2/ports.conf
86+ COPY configs/headers.conf /etc/apache2/conf-enabled/headers.conf
8787COPY configs/logs.conf /etc/apache2/conf-enabled/logs.conf
8888COPY configs/php-errors.ini /usr/local/etc/php/conf.d/php-errors.ini
8989COPY apache-run.sh /usr/bin/apache-run
Original file line number Diff line number Diff line change @@ -4,6 +4,15 @@ if [[ ${NR_ENABLED} == true ]]; then
44 sed -i -e " s/" REPLACE_WITH_REAL_KEY" /${NR_LICENSE_KEY} /g" /usr/local/etc/php/conf.d/newrelic.ini
55 sed -i -e " s/PHP Application/${NR_APP_NAME} /g" /usr/local/etc/php/conf.d/newrelic.ini
66 echo " newrelic.enabled = true" | tee -a /usr/local/etc/php/conf.d/newrelic.ini
7+
8+ if [[ ${NR_DISTRIBUTED_TRACING_ENABLED} == true ]]; then
9+ echo " newrelic.distributed_tracing_enabled = true" | tee -a /usr/local/etc/php/conf.d/newrelic.ini
10+ fi
11+
12+ if [[ ${NR_APPLICATION_LOGGING_ENABLED} == true ]]; then
13+ echo " newrelic.application_logging.enabled = true" | tee -a /usr/local/etc/php/conf.d/newrelic.ini
14+ fi
15+
716else
817 echo " newrelic.enabled = false" | tee -a /usr/local/etc/php/conf.d/newrelic.ini
918fi
Original file line number Diff line number Diff line change 1+ Header append X-Request-UID "%{UNIQUE_ID}e"
You can’t perform that action at this time.
0 commit comments