Skip to content
Snippets Groups Projects
Commit ced59e53 authored by Etienne LOUPIAS's avatar Etienne LOUPIAS
Browse files

test

parent 6b977ef2
No related branches found
No related tags found
1 merge request!991Store nginx logs
Pipeline #124684 passed
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment