nginx/nginx.conf

37 lines
727 B
Nginx Configuration File
Raw Normal View History

2023-05-10 03:41:30 +00:00
user nginx;
2023-04-01 04:18:56 +00:00
worker_processes auto;
events {
worker_connections 768;
}
http {
sendfile on;
tcp_nopush on;
types_hash_max_size 2048;
# mime types
2023-04-01 04:18:56 +00:00
include /etc/nginx/mime.types;
default_type application/octet-stream;
# logging
2023-04-01 04:18:56 +00:00
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
# gzip
2023-04-01 04:18:56 +00:00
gzip on;
gzip_vary on;
gzip_proxied any;
gzip_comp_level 6;
gzip_buffers 16 8k;
gzip_http_version 1.1;
gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
2023-04-01 04:18:56 +00:00
# ssl parameters
2023-04-27 22:53:49 +00:00
include /etc/nginx/ssl-params.conf;
# proxy parameters
2023-04-27 22:53:49 +00:00
include /etc/nginx/proxy-params.conf;
# include sites
include /etc/nginx/sites/*;
2023-04-01 04:18:56 +00:00
}