Files
caprover/template/base-nginx-conf.ejs
2019-02-27 22:54:43 -08:00

45 lines
882 B
Plaintext

user nginx;
worker_processes 1;
error_log /var/log/nginx/error.log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
geo $remote_addr $ip_in_log {
# CIDR Range IPs:
172.16.0.0/12 0;
10.0.0.0/8 0;
192.168.0.0/16 0;
default 1;
}
log_format main '$remote_addr - $remote_user [$time_local] "$host" "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';
access_log /var/log/nginx/access.log main if=$ip_in_log;
sendfile on;
#tcp_nopush on;
keepalive_timeout 65;
server_names_hash_bucket_size 128;
#gzip on;
include /etc/nginx/conf.d/*.conf;
}