ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
``` map $time_iso8601 $logdate { '~^(?<ymd>\d{4}-\d{2}-\d{2})' $ymd; default 'date-not-found'; } map $time_iso8601 $logtime { '~^(?<ymd>\d{4}-\d{2}-\d{2})T(?<his>\d{2}:\d{2}:\d{2})' '$ymd $his'; default $time_iso8601; } log_format main '[$logtime] [$remote_addr] [$remote_user] [$request] ' '[$status] [$body_bytes_sent] [$http_referer] ' '[$http_user_agent] [$http_x_forwarded_for]'; access_log /var/log/nginx/access-${logdate}.log main; ```