Skip to content

Instantly share code, notes, and snippets.

@pplanel
pplanel / nginx.conf
Created December 2, 2020 23:12 — forked from phiresky/nginx.conf
Log as much information as possible in nginx to json format
http {
log_format json_combined escape=json
'{'
'"time_iso8601":"$time_iso8601", "remote_addr":"$remote_addr", "remote_user":"$remote_user", "request":"$request",'
'"status": "$status", "body_bytes_sent":"$body_bytes_sent", "request_time":"$request_time","http_host":"$http_host","host":"$host",'
'"args":"$args",'
'"connection":"$connection","content_length":"$content_length","content_type":"$content_type","uri":"$uri","request_filename":"$request_filename",'
'"http_referrer":"$http_referer", "http_user_agent":"$http_user_agent",'
'"upstream_connect_time": "$upstream_connect_time", "upstream_response_time":"$upstream_response_time"'
'}';
@pplanel
pplanel / golang_job_queue.md
Created February 11, 2016 03:01 — forked from harlow/golang_job_queue.md
Job queues in Golang