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 \
18
18
XDEBUG_VERSION="-3.2.1" \
19
19
XDEBUG_REMOTE_PORT=9000 \
20
20
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
24
23
25
24
RUN apt-get update && apt-get install -y --no-install-recommends wget vim supervisor libfreetype6-dev libjpeg-dev libjpeg62-turbo-dev \
26
25
libmcrypt-dev libpng-dev libssl-dev libaio1 git libcurl4-openssl-dev libxslt-dev \
27
26
libldap2-dev libicu-dev libc-client-dev libkrb5-dev libsqlite3-dev libedit-dev \
28
27
sudo zlib1g zlib1g-dev libzip4 libzip-dev zip unzip librabbitmq-dev musl-dev && \
29
28
rm -rf /var/lib/apt/lists/*
30
29
31
- RUN a2enmod rewrite unique_id
30
+ RUN a2enmod rewrite unique_id headers
32
31
33
32
RUN docker-php-ext-configure gd --with-jpeg \
34
33
&& docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ \
@@ -84,6 +83,7 @@ RUN echo "---> Fix permissions" \
84
83
&& mkdir /var/www/.composer && chown -R www-data:www-data /var/www/.composer
85
84
86
85
COPY configs/ports.conf /etc/apache2/ports.conf
86
+ COPY configs/headers.conf /etc/apache2/conf-enabled/headers.conf
87
87
COPY configs/logs.conf /etc/apache2/conf-enabled/logs.conf
88
88
COPY configs/php-errors.ini /usr/local/etc/php/conf.d/php-errors.ini
89
89
COPY 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
4
4
sed -i -e " s/" REPLACE_WITH_REAL_KEY" /${NR_LICENSE_KEY} /g" /usr/local/etc/php/conf.d/newrelic.ini
5
5
sed -i -e " s/PHP Application/${NR_APP_NAME} /g" /usr/local/etc/php/conf.d/newrelic.ini
6
6
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
+
7
16
else
8
17
echo " newrelic.enabled = false" | tee -a /usr/local/etc/php/conf.d/newrelic.ini
9
18
fi
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