From 7fc42a25c41f975636a6eef70411f814109c63b8 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Fri, 17 Feb 2023 16:37:57 -0500 Subject: [PATCH] remove Arch Linux nginx error_log configuration error_log works the same way as add_header where defining it again on the same level is additive and logs to both places, meaning that there are duplicated logs when defining a proper syslog error_log output at the top level. --- systemd/system/nginx.service.d/local.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/systemd/system/nginx.service.d/local.conf b/systemd/system/nginx.service.d/local.conf index c6b4dd2..cb95935 100644 --- a/systemd/system/nginx.service.d/local.conf +++ b/systemd/system/nginx.service.d/local.conf @@ -1,5 +1,7 @@ [Service] CapabilityBoundingSet=CAP_DAC_OVERRIDE CAP_NET_BIND_SERVICE CAP_SETUID CAP_SETGID +ExecStart= +ExecStart=/usr/bin/nginx -g 'pid /run/nginx.pid;' LockPersonality=true NoNewPrivileges=true MemoryDenyWriteExecute=true