Add optional access logging for the stream server
This commit is contained in:
parent
c60fc4215a
commit
db4045f54f
1 changed files with 9 additions and 0 deletions
|
|
@ -21,6 +21,15 @@ events {
|
|||
# We use the 'stream' service, which is essentially just a TCP proxy with
|
||||
# some bells and whistles.
|
||||
stream {
|
||||
# You may want to enable the next few lines in order to get access logs.
|
||||
# I've disabled them by default; if you enable logging make sure you
|
||||
# point the log file to a directory that 1) exists and 2) is writable
|
||||
# by the nginx worker processes.
|
||||
#log_format basic '$remote_addr [$time_local] '
|
||||
# '$protocol $status $bytes_sent $bytes_received '
|
||||
# '$session_time';
|
||||
#access_log /var/log/nginx/stream.log basic;
|
||||
|
||||
# Make sure TCP_NODELAY is set; this prevents unnecessary waits in order
|
||||
# to fill data segments prior to sending. This is an interactive service
|
||||
# so any delay would make it seem like a slower BBS/phone line than it
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue