vps/nginx-www/nginx.conf

45 lines
731 B
Nginx Configuration File
Raw Normal View History

2023-12-06 08:42:31 +01:00
user nginx;
pid /tmp/nginx.pid;
2023-11-22 08:26:10 +01:00
worker_processes auto;
worker_cpu_affinity auto;
worker_rlimit_nofile 2048;
events {
worker_connections 1024;
}
http {
charset utf-8;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
gzip off;
# Hide NGINX version in error messages.
server_tokens off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
2023-12-06 08:42:31 +01:00
client_body_temp_path /tmp/client_temp;
proxy_temp_path /tmp/proxy_temp_path;
fastcgi_temp_path /tmp/fastcgi_temp;
uwsgi_temp_path /tmp/uwsgi_temp;
scgi_temp_path /tmp/scgi_temp;
2023-11-22 08:26:10 +01:00
server {
2023-11-26 10:03:51 +01:00
listen 80 default_server;
2023-11-22 08:26:10 +01:00
listen [::]:80 default_server;
http2 on;
server_name _;
root /mnt/index;
}
}