forked from gitbot/uguu
62 lines
1.1 KiB
Nginx Configuration File
62 lines
1.1 KiB
Nginx Configuration File
user www-data;
|
|
worker_processes auto;
|
|
pid /run/nginx.pid;
|
|
include /etc/nginx/modules-enabled/*.conf;
|
|
|
|
events {
|
|
worker_connections 4096;
|
|
multi_accept on;
|
|
use epoll;
|
|
|
|
}
|
|
|
|
http {
|
|
|
|
##
|
|
# Basic Settings
|
|
##
|
|
|
|
sendfile on;
|
|
tcp_nopush on;
|
|
tcp_nodelay on;
|
|
keepalive_timeout 10;
|
|
types_hash_max_size 2048;
|
|
server_tokens off;
|
|
client_max_body_size 128m;
|
|
|
|
##
|
|
# Mime Settings
|
|
##
|
|
|
|
include /etc/nginx/mime.types;
|
|
default_type application/octet-stream;
|
|
|
|
##
|
|
# Logging Settings
|
|
##
|
|
|
|
#access_log /var/log/nginx/access.log;
|
|
#error_log /var/log/nginx/error.log;
|
|
error_log off;
|
|
access_log off;
|
|
|
|
##
|
|
# Gzip Settings
|
|
##
|
|
|
|
#gzip off;
|
|
#gzip_vary on;
|
|
#gzip_proxied any;
|
|
#gzip_comp_level 6;
|
|
#gzip_buffers 16 8k;
|
|
#gzip_http_version 1.1;
|
|
#gzip_types application/javascript application/rss+xml application/vnd.ms-fontobject application/x-font application/x-font-opentype application/x-font-otf application/x-font-truetype application/x-font-ttf application/x-javascript application/xhtml+xml application/xml font/opentype font/otf font/ttf image/svg+xml image/x-icon text/css text/javascript text/xml;
|
|
|
|
##
|
|
# Virtual Host Configs
|
|
##
|
|
|
|
include /etc/nginx/conf.d/*.conf;
|
|
include /etc/nginx/sites-enabled/*;
|
|
}
|