mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-22 14:32:15 +00:00
nginx logging
This commit is contained in:
@@ -23,9 +23,8 @@ server {
|
|||||||
ssl_prefer_server_ciphers off;
|
ssl_prefer_server_ciphers off;
|
||||||
|
|
||||||
# access log doesn't contain IP address
|
# access log doesn't contain IP address
|
||||||
# disabled by default
|
#access_log off;
|
||||||
#access_log /data/ofm/http_host/logs_nginx/le-access.jsonl access_json buffer=32k;
|
access_log /data/ofm/http_host/logs_nginx/le-access.jsonl access_json buffer=128k;
|
||||||
access_log off;
|
|
||||||
|
|
||||||
error_log /data/ofm/http_host/logs_nginx/le-error.log;
|
error_log /data/ofm/http_host/logs_nginx/le-error.log;
|
||||||
|
|
||||||
|
|||||||
@@ -23,9 +23,8 @@ server {
|
|||||||
ssl_prefer_server_ciphers off;
|
ssl_prefer_server_ciphers off;
|
||||||
|
|
||||||
# access log doesn't contain IP address
|
# access log doesn't contain IP address
|
||||||
# disabled by default
|
#access_log off;
|
||||||
#access_log /data/ofm/http_host/logs_nginx/ledns-access.jsonl access_json buffer=32k;
|
access_log /data/ofm/http_host/logs_nginx/ledns-access.jsonl access_json buffer=128k;
|
||||||
access_log off;
|
|
||||||
|
|
||||||
error_log /data/ofm/http_host/logs_nginx/ledns-error.log;
|
error_log /data/ofm/http_host/logs_nginx/ledns-error.log;
|
||||||
|
|
||||||
|
|||||||
@@ -47,16 +47,16 @@ http {
|
|||||||
# general
|
# general
|
||||||
'"time": "$time_iso8601", '
|
'"time": "$time_iso8601", '
|
||||||
'"status": $status, '
|
'"status": $status, '
|
||||||
'"request_method": "$request_method", '
|
#'"request_method": "$request_method", '
|
||||||
'"uri": "$uri", '
|
#'"uri": "$uri", '
|
||||||
'"request": "$request", '
|
#'"request": "$request", '
|
||||||
'"request_time": $request_time, '
|
#'"request_time": $request_time, '
|
||||||
'"body_bytes_sent": $body_bytes_sent, '
|
'"body_bytes_sent": $body_bytes_sent, '
|
||||||
'"http_referrer": "$http_referer", '
|
'"http_referrer": "$http_referer", '
|
||||||
'"http_user_agent": "$http_user_agent", '
|
'"http_user_agent": "$http_user_agent", '
|
||||||
'"scheme": "$scheme", '
|
#'"scheme": "$scheme", '
|
||||||
'"host": "$host", '
|
#'"host": "$host", '
|
||||||
'"http_host": "$http_host", '
|
#'"http_host": "$http_host", '
|
||||||
|
|
||||||
# IP address related
|
# IP address related
|
||||||
# IP address logging is disabled
|
# IP address logging is disabled
|
||||||
@@ -71,9 +71,8 @@ http {
|
|||||||
'"_": "_"' # helper for no trailing comma
|
'"_": "_"' # helper for no trailing comma
|
||||||
'}';
|
'}';
|
||||||
|
|
||||||
# access log disabled by default
|
|
||||||
#access_log /data/nginx/logs/nginx-access.log access_json buffer=32k;
|
|
||||||
access_log off;
|
access_log off;
|
||||||
|
#access_log /data/nginx/logs/nginx-access.log access_json buffer=128k;
|
||||||
|
|
||||||
include /data/nginx/config/*;
|
include /data/nginx/config/*;
|
||||||
include /data/nginx/sites/*;
|
include /data/nginx/sites/*;
|
||||||
|
|||||||
Reference in New Issue
Block a user