54 lines
1.2 KiB
Nginx Configuration File
54 lines
1.2 KiB
Nginx Configuration File
# The user account used by the worker processes. If following along with Hosting WordPress Yourself,
|
|
# it's recommened to set this to your username, but only when running a single user access server.
|
|
# https://deliciousbrains.com/hosting-wordpress-yourself-nginx-php-mysql/
|
|
user www-data;
|
|
|
|
# Set to number of CPU cores, auto will try to autodetect.
|
|
worker_processes auto;
|
|
|
|
# Maximum open file descriptors per process. Should be greater than worker_connections.
|
|
worker_rlimit_nofile 8192;
|
|
|
|
# File that stores the process ID. Rarely needs changing.
|
|
pid /run/nginx.pid;
|
|
|
|
events {
|
|
# Set the maximum number of connection each worker process can open
|
|
worker_connections 8000;
|
|
|
|
# Accept all new connections at a time
|
|
multi_accept on;
|
|
}
|
|
|
|
http {
|
|
|
|
# HTTP
|
|
include global/http.conf;
|
|
|
|
# MIME Types
|
|
include global/mime-types.conf;
|
|
default_type application/octet-stream;
|
|
|
|
# Limits & Timeouts
|
|
include global/limits.conf;
|
|
|
|
# Default Logs
|
|
error_log /var/log/nginx/error.log warn;
|
|
access_log /var/log/nginx/access.log;
|
|
|
|
# Gzip
|
|
include global/gzip.conf;
|
|
|
|
# Cache Static Content
|
|
include global/cache.conf;
|
|
|
|
# Security
|
|
include global/security.conf;
|
|
|
|
# Modules
|
|
include /etc/nginx/conf.d/*.conf;
|
|
|
|
# Sites
|
|
include /etc/nginx/sites-enabled/*;
|
|
|
|
} |