Files
avto4certbot/docs/nginx_examples/nginx.conf
T

54 lines
1.3 KiB
Nginx Configuration File

user www-data;
worker_processes auto;
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;
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;
access_log off;
sendfile on;
tcp_nopush on;
server_tokens off;
keepalive_timeout 65;
gzip on;
gzip_disable "msie6";
gzip_comp_level 4;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
include /etc/nginx/conf.d/*.conf;
include /etc/nginx/sites-enabled/*;
#### SSL
include /etc/nginx/nginx_ssl.conf;
####
tcp_nodelay on;
types_hash_max_size 2048;
### codepage
charset utf8;
source_charset utf8;
#### Tuning system....
client_max_body_size 40M;
client_body_timeout 10;
client_header_timeout 10;
send_timeout 10;
set_real_ip_from 127.0.0.1;
real_ip_header X-Real-IP;
}