Skip to content

Commit

Permalink
remove nginx log format setting
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-bian committed Apr 4, 2023
1 parent 596c2e2 commit caceb5d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions docker/nginx/conf.d/admin.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ server {
server {
listen 443 ssl;
server_name admin.bianxf.com;
access_log /var/log/nginx/access_admin.log full;
error_log /var/log/nginx/error_admin.log full;
access_log /var/log/nginx/access_admin.log;
error_log /var/log/nginx/error_admin.log;
ssl_certificate /etc/nginx/ssl/admin.bianxf.com_bundle.crt;
ssl_certificate_key /etc/nginx/ssl/admin.bianxf.com.key;

Expand Down
4 changes: 2 additions & 2 deletions docker/nginx/conf.d/blog.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ server {
listen 443 ssl;
server_name www.bianxf.com;

access_log /var/log/nginx/access_blog.log full;
error_log /var/log/nginx/error_blog.log full;
access_log /var/log/nginx/access_blog.log;
error_log /var/log/nginx/error_blog.log;
ssl_certificate /etc/nginx/ssl/www.bianxf.com_bundle.crt;
ssl_certificate_key /etc/nginx/ssl/www.bianxf.com.key;
ssl_session_cache shared:SSL:1m;
Expand Down
8 changes: 2 additions & 6 deletions docker/nginx/conf/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,8 @@ events {
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
log_format full '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" '
'URL: $scheme://$host$request_uri';
access_log /var/log/nginx/access.log full;
error_log /var/log/nginx/error.log full;
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
Expand Down

0 comments on commit caceb5d

Please sign in to comment.