From 72339ece8fd581d4f850d6131b77af099851861b Mon Sep 17 00:00:00 2001 From: m1ka Date: Sun, 19 Jul 2026 19:40:32 +0200 Subject: [PATCH] fix nginx too --- nginx.conf | 45 +++++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 22 deletions(-) diff --git a/nginx.conf b/nginx.conf index 6f06109cb7b913652b9a8b874aa56d78e04ac701..a49aac2a74d68c0a00aa25fae5ccc9b0a135cf68 100644 --- a/nginx.conf +++ b/nginx.conf @@ -1,30 +1,31 @@ -user www; -worker_processes auto; +user nginx; +worker_processes auto; -daemon off; +error_log /var/log/nginx/error.log notice; +pid /run/nginx.pid; -error_log /var/log/nginx/error.log warn; events { - worker_connections 1024; + worker_connections 1024; } + http { - include /etc/nginx/mime.types; - default_type application/octet-stream; - sendfile on; - access_log /var/log/nginx/access.log; - keepalive_timeout 3000; - gzip on; - server { - listen 80; - root /data/www; - index index.html; - server_name www.m1kadev.nl; - client_max_body_size 32m; - error_page 500 502 503 503 /50x.html; - location = /50x.html { - root /var/lib/nginx/html; - } - } + 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" "$http_x_forwarded_for"'; + + access_log /var/log/nginx/access.log main; + + sendfile on; + #tcp_nopush on; + + keepalive_timeout 65; + + #gzip on; + + include /etc/nginx/conf.d/*.conf; }