Skip to content

Commit

Permalink
fix: Fixes logging config
Browse files Browse the repository at this point in the history
  • Loading branch information
norwoodj committed Dec 7, 2019
1 parent 7df91c2 commit 734b912
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,17 @@ http {
include /etc/nginx/mime.types;
include /etc/nginx/uwsgi_params;

access_log /opt/stupidchess/logs/nginx-access.log;
error_log /opt/stupidchess/logs/nginx-errors.log;
log_format main '$remote_addr - $remote_user [$time_local] '
'"$request" $status $body_bytes_sent '
'"$http_referer" "$http_user_agent"'
'rt=$request_time uct="$upstream_connect_time" uht="$upstream_header_time" urt="$upstream_response_time"';

server {
listen 23080;

access_log /opt/stupidchess/logs/nginx-access.log main;
error_log /opt/stupidchess/logs/nginx-errors.log;

# Android favicons
location = /manifest.json {
root /opt/stupidchess/dist/favicons;
Expand Down

0 comments on commit 734b912

Please sign in to comment.