ab-nginx/build/config/nginx.conf

52 lines
1.4 KiB
Nginx Configuration File
Raw Normal View History

2019-10-16 23:44:47 -06:00
#
### NGINX main configuration
#
user www-docker;
2019-10-16 23:44:47 -06:00
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;
2021-01-05 17:18:24 -07:00
use epoll;
2019-10-16 23:44:47 -06:00
}
http {
2019-10-20 00:24:47 -06:00
server_names_hash_bucket_size 512;
2019-10-16 23:44:47 -06:00
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;
2019-10-16 23:44:47 -06:00
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"';
2019-10-18 01:53:20 -06:00
access_log <ACCESS_LOG_SETTING>;
2019-10-16 23:44:47 -06:00
# server configuration options
server_tokens off;
real_ip_recursive on;
2019-10-17 16:30:35 -06:00
include /etc/nginx/ssl-config/*.conf;
2019-10-16 23:44:47 -06:00
include /etc/nginx/config/*.conf;
2019-10-17 01:06:52 -06:00
2021-01-05 17:18:24 -07:00
# include health status stub-site
include /etc/nginx/health.conf;
2019-10-16 23:44:47 -06:00
# include enabled server blocks from sites/*.conf
include /etc/nginx/sites/*.conf;
2021-01-05 17:18:24 -07:00
}