Files
nx9-www/www/config/nginx.conf
T

47 lines
957 B
Nginx Configuration File

user nginx;
worker_processes auto;
error_log /var/log/nginx/error.log notice;
pid /run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
#
# Trust only the Docker gateway
#
set_real_ip_from 172.21.0.1;
real_ip_header X-Forwarded-For;
real_ip_recursive on;
#
# NX9 access log
#
log_format nx9
'$remote_addr '
'peer="$realip_remote_addr" '
'- $remote_user '
'[$time_local] '
'"$request" '
'$status '
'$body_bytes_sent '
'"$http_referer" '
'"$http_user_agent" '
'xff="$http_x_forwarded_for" '
'host="$host" '
'conn=$connection '
'reqs=$connection_requests '
'rt=$request_time';
access_log /var/log/nginx/access.log nx9;
sendfile on;
keepalive_timeout 65;
include /etc/nginx/conf.d/*.conf;
}