From ced59e53be8052da6a58f8bd2fb853d99464fe4c Mon Sep 17 00:00:00 2001 From: Etienne Loupias <eloupias@grandlyon.com> Date: Thu, 20 Mar 2025 16:50:01 +0100 Subject: [PATCH] test --- nginx/nginx.conf | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index 9b85d572a..229a30885 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -8,18 +8,6 @@ events { worker_connections 1024; } -map $time_iso8601 $year { - default '0000'; - "~^(\d{4})-(\d{2})-(\d{2})" $1; -} -map $time_iso8601 $month { - default '00'; - "~^(\d{4})-(\d{2})-(\d{2})" $2; -} -map $time_iso8601 $day { - default '00'; - "~^(\d{4})-(\d{2})-(\d{2})" $3; -} http { proxy_temp_path /tmp/proxy_temp; @@ -35,6 +23,19 @@ http { '$status $body_bytes_sent "$http_referer" ' '"$http_user_agent" "$http_x_forwarded_for"'; + map $time_iso8601 $year { + default '0000'; + "~^(\d{4})-(\d{2})-(\d{2})" $1; + } + map $time_iso8601 $month { + default '00'; + "~^(\d{4})-(\d{2})-(\d{2})" $2; + } + map $time_iso8601 $day { + default '00'; + "~^(\d{4})-(\d{2})-(\d{2})" $3; + } + # Default log which is redirected to stdout access_log /var/log/nginx/access.log main; # Also write to file to persist logs -- GitLab