mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
feat: online read access log and error log
This commit is contained in:
parent
28168197b1
commit
fea0bc727f
19 changed files with 307 additions and 121 deletions
|
@ -5,3 +5,7 @@ JwtSecret = 2E1CE615-BB15-44F5-B5BE-6B5DA3581D0F
|
|||
Email = test@jackyu.cn
|
||||
HTTPChallengePort = 9180
|
||||
StartCmd = bash
|
||||
|
||||
[nginx_log]
|
||||
AccessLogPath = /var/log/nginx/access.local.log
|
||||
ErrorLogPath = /var/log/nginx/error.local.log
|
||||
|
|
|
@ -3,6 +3,9 @@ server {
|
|||
listen [::]:80;
|
||||
server_name ojbk.me;
|
||||
|
||||
access_log /var/log/nginx/ojbk.me.log;
|
||||
error_log /var/log/nginx/ojbk.me.error.log;
|
||||
|
||||
location /.well-known/acme-challenge {
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real_IP $remote_addr;
|
||||
|
@ -10,4 +13,4 @@ server {
|
|||
proxy_pass http://127.0.0.1:9180;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,6 +2,7 @@ user nginx;
|
|||
worker_processes auto;
|
||||
|
||||
error_log /var/log/nginx/error.log notice;
|
||||
error_log /var/log/nginx/error.local.log notice;
|
||||
pid /var/run/nginx.pid;
|
||||
|
||||
|
||||
|
@ -19,6 +20,7 @@ http {
|
|||
'"$http_user_agent" "$http_x_forwarded_for"';
|
||||
|
||||
access_log /var/log/nginx/access.log main;
|
||||
access_log /var/log/nginx/access.local.log main;
|
||||
|
||||
sendfile on;
|
||||
#tcp_nopush on;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue