Files
nginx-main/config/nginx/nginx.conf
2025-12-03 15:42:58 +00:00

25 lines
713 B
Nginx Configuration File

# 1. Main global section
user nginx;
worker_processes auto;
# 2. **REQUIRED EVENTS BLOCK**
events {
# Define how Nginx handles connections
worker_connections 1024;
}
# 3. HTTP context (where your server blocks go)
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"';
sendfile on;
keepalive_timeout 65;
resolver 127.0.0.11 valid=5s ipv6=off;
# Include your server configuration files (like develop.conf)
include /etc/nginx/conf.d/*.conf;
}