44 lines
1.2 KiB
Nginx Configuration File
44 lines
1.2 KiB
Nginx Configuration File
|
user nginx;
|
||
|
worker_processes auto;
|
||
|
|
||
|
#error_log /var/log/nginx/error.log notice;
|
||
|
error_log /dev/stderr warn;
|
||
|
pid /var/run/nginx.pid;
|
||
|
|
||
|
|
||
|
events {
|
||
|
worker_connections 1024;
|
||
|
}
|
||
|
|
||
|
|
||
|
http {
|
||
|
include /etc/nginx/mime.types;
|
||
|
default_type application/octet-stream;
|
||
|
|
||
|
client_max_body_size 1048576; # default 1m
|
||
|
|
||
|
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
||
|
'$status $body_bytes_sent "$http_referer" '
|
||
|
'"$http_user_agent" "$http_x_forwarded_for"';
|
||
|
|
||
|
#access_log /var/log/nginx/access.log main;
|
||
|
|
||
|
log_format addHeaderlog '$remote_addr - $remote_user [$time_local] '
|
||
|
'"$request" $status $body_bytes_sent '
|
||
|
'"$http_referer" "$http_user_agent" "$http_x_forwarded_for" "$request_body" "$http_Authorization" "$http_x_my_header1" "$http_x_my_header2"'
|
||
|
'"$http_my_header1" "$http_my_header2" '
|
||
|
'"$http_user_agent" cookie[$http_cookie]';
|
||
|
|
||
|
access_log /dev/stdout addHeaderlog;
|
||
|
|
||
|
|
||
|
#sendfile on;
|
||
|
#tcp_nopush on;
|
||
|
|
||
|
keepalive_timeout 65;
|
||
|
server_names_hash_bucket_size 128;
|
||
|
#gzip on;
|
||
|
|
||
|
include /etc/nginx/conf.d/*.conf;
|
||
|
}
|