[wgo-web/nginx] Add country code to log_format
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [wgo-web/nginx] Add country code to log_format
- Date: Sun, 22 Nov 2020 13:13:28 +0000 (UTC)
commit 540b1f37d99e3aedbc7370c6c42a060e2c213781
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date: Sun Nov 22 14:13:03 2020 +0100
Add country code to log_format
nginx.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/nginx.conf b/nginx.conf
index b0f339b..b702198 100644
--- a/nginx.conf
+++ b/nginx.conf
@@ -18,7 +18,7 @@ http {
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
- '"$http_user_agent" "$http_x_forwarded_for"';
+ '"$http_user_agent" "$http_x_forwarded_for" "$geoip_country_code"';
access_log /dev/stdout main;
include /etc/nginx/mime.types;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]