Skip to content
Snippets Groups Projects
Commit e51d644a authored by Ryan Senior's avatar Ryan Senior
Browse files

Remove healthd enhanced logging references from EB nginx config

Referencing healthd can cause problems on EB instances that do not
have enhanced logging enabled. This commit removes it, allowing the
configuration to work regardless of whether enhanced logging is
enabled.

Fixes #5537
parent 5d7c47f4
Branches
Tags
No related merge requests found
......@@ -70,7 +70,6 @@ server {
set $day $3;
set $hour $4;
}
access_log /var/log/nginx/healthd/application.log.$year-$month-$day-$hour healthd;
access_log /var/log/nginx/access.log;
......@@ -122,7 +121,6 @@ server {
set $day $3;
set $hour $4;
}
access_log /var/log/nginx/healthd/application.log.$year-$month-$day-$hour healthd;
access_log /var/log/nginx/access.log;
......@@ -169,7 +167,7 @@ cp_default_server () {
log_x_real_ip () {
cp .ebextensions/metabase_config/nginx/log_x_real_ip.conf /etc/nginx/conf.d/log_x_real_ip.conf
cd /etc/nginx/sites-available
if ! grep -q access_log *-proxy.conf ; then
if ! grep -q access_log *-proxy.conf ; then
sed -i 's|location \/ {|location \/ {\n\n access_log \/var\/log\/nginx\/access.log log_x_real_ip;\n|' *-proxy.conf
fi
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment