ab-nginx/build/config/nginx.conf

58 lines
1.6 KiB
Nginx Configuration File
Raw Permalink Normal View History

2019-10-16 23:44:47 -06:00
#
### NGINX main configuration
#
worker_processes 1;
pid /tmp/nginx.pid;
2019-10-16 23:44:47 -06:00
error_log /var/log/nginx/error.log warn;
# include dynamically linked modules
include /etc/nginx/modules/*.conf;
events {
worker_connections 1024;
2019-10-16 23:44:47 -06:00
multi_accept off;
2021-01-05 17:18:24 -07:00
use epoll;
2019-10-16 23:44:47 -06:00
}
http {
server_names_hash_bucket_size 128;
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
# change temp paths so limited user can access them
client_body_temp_path /tmp/client_temp;
fastcgi_temp_path /tmp/fastcgi_temp;
proxy_temp_path /tmp/proxy_temp;
scgi_temp_path /tmp/scgi_temp;
uwsgi_temp_path /tmp/uwsgi_temp;
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
}