53 lines
1.4 KiB
Nginx Configuration File
53 lines
1.4 KiB
Nginx Configuration File
#
|
|
### NGINX main configuration
|
|
#
|
|
|
|
user www-docker;
|
|
worker_processes 1;
|
|
pid /var/run/nginx.pid;
|
|
|
|
error_log /var/log/nginx/error.log warn;
|
|
|
|
# include dynamically linked modules
|
|
include /etc/nginx/modules/*.conf;
|
|
|
|
events {
|
|
worker_connections 512;
|
|
multi_accept off;
|
|
use epoll;
|
|
}
|
|
|
|
http {
|
|
server_names_hash_bucket_size 512;
|
|
default_type application/octet-stream;
|
|
charset utf-8;
|
|
include /etc/nginx/mime.types;
|
|
|
|
# set default index and webroot
|
|
index index.html index.htm default.htm;
|
|
root /usr/share/nginx/html;
|
|
|
|
# logging options (off by default for performance)
|
|
log_format main '$remote_addr - $remote_user [$time_local] $request '
|
|
'$status $body_bytes_sent "$http_referer" '
|
|
'"$http_user_agent" "$http_x_forwarded_for" '
|
|
'"$host" server="$server_name" '
|
|
'reqtime="$request_time" '
|
|
'uaddr="$upstream_addr" ustat="$upstream_status" '
|
|
'utime="$upstream_response_time" ulen="$upstream_response_length" '
|
|
'cache="$upstream_cache_status"';
|
|
access_log <ACCESS_LOG_SETTING>;
|
|
|
|
# server configuration options
|
|
server_tokens off;
|
|
real_ip_recursive on;
|
|
resolver 1.1.1.1;
|
|
proxy_buffers 16 16k;
|
|
proxy_buffer_size 16k;
|
|
include /etc/nginx/ssl-config/*.conf;
|
|
include /etc/nginx/config/*.conf;
|
|
|
|
# include enabled server blocks from sites/*.conf
|
|
include /etc/nginx/sites/*.conf;
|
|
}
|