parent
0419eb4db7
commit
16c3e250b7
77
nginx.conf
77
nginx.conf
|
@ -16,29 +16,60 @@ http {
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
|
|
||||||
# Use a debug-oriented logging format.
|
# Use a debug-oriented logging format.
|
||||||
log_format debugging '$remote_addr - $remote_user [$time_local] "$request" '
|
log_format debugging escape=json
|
||||||
'$status $body_bytes_sent '
|
'{'
|
||||||
'"HOST: $host" "UPSTREAM: $upstream_addr" '
|
'"access_time":"$time_local",'
|
||||||
'"UPSTREAM-STATUS: $upstream_status" '
|
'"remote_addr":"$remote_addr",'
|
||||||
'"SSL-PROTO: $ssl_protocol" '
|
'"remote_user":"$remote_user",'
|
||||||
'"CONNECT-HOST: $connect_host" "CONNECT-PORT: $connect_port" "CONNECT-ADDR: $connect_addr" '
|
'"request":"$request",'
|
||||||
'"PROXY-HOST: $proxy_host" "UPSTREAM-REDIRECT: $upstream_http_location" "CACHE-STATUS: $upstream_cache_status" '
|
'"status":"$status",'
|
||||||
'"AUTH: $http_authorization" ' ;
|
'"bytes_sent":"$body_bytes_sent",'
|
||||||
|
'"host":"$host",'
|
||||||
log_format debug_proxy 'CONNECTPROXY: $remote_addr - $remote_user [$time_local] "$request" '
|
'"proxy_host":"$proxy_host",'
|
||||||
'$status $body_bytes_sent '
|
'"upstream":"$upstream_addr"'
|
||||||
'"HOST: $host" "UPSTREAM: $upstream_addr" '
|
'"upstream_status":"$upstream_status",'
|
||||||
'"UPSTREAM-STATUS: $upstream_status" '
|
'"ssl_protocol":"$ssl_protocol",'
|
||||||
'"SSL-PROTO: $ssl_protocol" '
|
'"connect_host":"$connect_host",'
|
||||||
'"CONNECT-HOST: $connect_host" "CONNECT-PORT: $connect_port" "CONNECT-ADDR: $connect_addr" "INTERCEPTED: $interceptedHost" '
|
'"connect_port":"$connect_port",'
|
||||||
'"PROXY-HOST: $proxy_host" "UPSTREAM-REDIRECT: $upstream_http_location" "CACHE-STATUS: $upstream_cache_status" '
|
'"connect_addr":"$connect_addr",'
|
||||||
'"AUTH: $http_authorization" ' ;
|
'"upstream_http_location":"$upstream_http_location",'
|
||||||
|
'"upstream_cache_status":"$upstream_cache_status",'
|
||||||
log_format tweaked '$upstream_cache_status [$time_local] "$uri" '
|
'"http_authorization":"$http_authorization",'
|
||||||
'$status $body_bytes_sent '
|
'}';
|
||||||
'"HOST:$host" '
|
|
||||||
'"PROXY-HOST:$proxy_host" "UPSTREAM:$upstream_addr" ';
|
log_format debug_proxy escape=json
|
||||||
|
'{'
|
||||||
|
'"access_time":"$time_local",'
|
||||||
|
'"remote_addr":"$remote_addr",'
|
||||||
|
'"remote_user":"$remote_user",'
|
||||||
|
'"request":"$request",'
|
||||||
|
'"status":"$status",'
|
||||||
|
'"bytes_sent":"$body_bytes_sent",'
|
||||||
|
'"host":"$host",'
|
||||||
|
'"proxy_host":"$proxy_host",'
|
||||||
|
'"upstream":"$upstream_addr"'
|
||||||
|
'"upstream_status":"$upstream_status",'
|
||||||
|
'"ssl_protocol":"$ssl_protocol",'
|
||||||
|
'"connect_host":"$connect_host",'
|
||||||
|
'"connect_port":"$connect_port",'
|
||||||
|
'"connect_addr":"$connect_addr",'
|
||||||
|
'"upstream_http_location":"$upstream_http_location",'
|
||||||
|
'"upstream_cache_status":"$upstream_cache_status",'
|
||||||
|
'"http_authorization":"$http_authorization",'
|
||||||
|
'}';
|
||||||
|
|
||||||
|
log_format tweaked escape=json
|
||||||
|
'{'
|
||||||
|
'"access_time":"$time_local",'
|
||||||
|
'"upstream_cache_status":"$upstream_cache_status",'
|
||||||
|
'"uri":"$uri",'
|
||||||
|
'"status":"$status",'
|
||||||
|
'"bytes_sent":"$body_bytes_sent",'
|
||||||
|
'"host":"$host",'
|
||||||
|
'"proxy_host":"$proxy_host",'
|
||||||
|
'"upstream":"$upstream_addr"'
|
||||||
|
'}';
|
||||||
|
|
||||||
keepalive_timeout 300;
|
keepalive_timeout 300;
|
||||||
gzip off;
|
gzip off;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue