Skip to content

Commit

Permalink
Update Nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
Acenl12 authored Nov 20, 2023
1 parent 0bb2427 commit b26f11b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,18 @@ http {
types_hash_max_size 2048;
server_tokens off;
server_names_hash_bucket_size 64;
## The below will create a separate log file for your emby server which includes
## userId's and other emby specific info, handy for external log viewers.
## Cloudflare users will want to swap $remote_addr in first line below to $http_CF_Connecting_IP
## to log the real client IP address
log_format emby '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" $request_time $server_port "$http_x_emby_authorization"';


log_format default '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for" $request_time $server_port';
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
Expand Down

0 comments on commit b26f11b

Please sign in to comment.