From 697feff582d9eba784ba174ea41121639f29b443 Mon Sep 17 00:00:00 2001 From: Piotr Biernat Date: Thu, 6 Oct 2022 19:52:12 +0200 Subject: [PATCH] fixed logging --- data/etc/nginx/apigw.conf | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/data/etc/nginx/apigw.conf b/data/etc/nginx/apigw.conf index 9a4d73d..8287dd4 100644 --- a/data/etc/nginx/apigw.conf +++ b/data/etc/nginx/apigw.conf @@ -2,7 +2,8 @@ include apigw_backends.conf; include apigw_keys.conf; server { - access_log /var/log/nginx/apigw_access.log main; + access_log /var/log/nginx/apigw_access.log main; + error_log /var/log/nginx/apigw_error.log warn; listen 80; # listen 443 ssl; @@ -30,9 +31,6 @@ server { location = /_validate_apikey { internal; - access_log /var/log/nginx/apigw_access.log main; - error_log /var/log/nginx/apigw_error.log warn; - if ($http_apikey = "") { return 401; # Unauthorized }