nginx/nginx.conf
Arthur Lu 240fddde77 fix styling
Signed-off-by: Arthur Lu <learthurgo@gmail.com>
2023-04-27 15:57:33 -07:00

38 lines
750 B
Nginx Configuration File

user www-data;
worker_processes auto;
pid /run/nginx.pid;
events {
worker_connections 768;
}
http {
sendfile on;
tcp_nopush on;
types_hash_max_size 2048;
# mime types
include /etc/nginx/mime.types;
default_type application/octet-stream;
# logging
access_log /var/log/nginx/access.log;
error_log /var/log/nginx/error.log;
# gzip
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;
# ssl parameters
include /etc/nginx/ssl-params.conf;
# proxy parameters
include /etc/nginx/proxy-params.conf;
# include sites
include /etc/nginx/sites/*;
}