Вообще установка и настройка nginx ничем не отличается от других систем linux. Поэтому вкратце выложу основные настройки на мой взгляд. dnf install nginx Добавим сервис в автозагрузку. systemctl enable nginx --now Теперь приступим к настройке самого сервиса nginx mv /etc/nginx/nginx.conf /etc/nginx/nginx.conf_old
nano /etc/nginx/nginx.conf user nginx;
worker_processes auto;
pid /var/run/nginx.pid;
events {
worker_connections 768;
}
#include /etc/nginx/sites-enabled/*.stream;
http {
# Basic
sendfile on;
tcp_nopush on;
tcp_nodelay on;
types_hash_max_size 4096;
server_tokens off;
ignore_invalid_headers on;
# Decrease default timeouts to drop slow clients
keepalive_timeout 40s;
send_timeout 20s;
client_header_timeout 20s;
client_body_timeout 20s;
reset_timedout_connection on;
# Hash sizes
server_names_hash_bucket_size 64;
# Mime types
default_type application/octet-stream;
include /etc/nginx/mime.types;