feat: online read access log and error log

This commit is contained in:
0xJacky 2022-09-01 10:48:16 +08:00
parent 28168197b1
commit fea0bc727f
No known key found for this signature in database
GPG key ID: B6E4A6E4A561BAF0
19 changed files with 307 additions and 121 deletions

View file

@ -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

View file

@ -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;
}
}
}

View file

@ -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;