mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-11-07 19:40:49 +08:00
feat(nginx-log): 4 个 stack 模板增加 log_format 与 access_log 配置(Docker 开箱即用)
This commit is contained in:
6
source/stack/full/source/docker/nginx-log-format.conf
Normal file
6
source/stack/full/source/docker/nginx-log-format.conf
Normal file
@@ -0,0 +1,6 @@
|
||||
# ulthon_admin nginx_log 分析专用 log_format
|
||||
# 必须放在 nginx 的 http 块(通过 conf.d/*.conf 自动 include)
|
||||
log_format analytics '$remote_addr - $remote_user [$time_local] '
|
||||
'"$request" $status $body_bytes_sent '
|
||||
'"$http_referer" "$http_user_agent" '
|
||||
'$request_time $upstream_response_time $bytes_sent';
|
||||
Reference in New Issue
Block a user