From 12cd6e6676fc3d11f775b1d994089ec035cc2934 Mon Sep 17 00:00:00 2001 From: David Weber Date: Thu, 19 Oct 2023 14:30:38 +0200 Subject: [PATCH] chore: initial commit --- nginx/nginx.conf | 50 ++++++++++++++++++++++++++++++++++-------------- 1 file changed, 36 insertions(+), 14 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index eb5ba5e..1af4b1b 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -1,18 +1,40 @@ -pid /tmp/nginx.pid; +user www www; ## Default: nobody +worker_processes 5; ## Default: 1 +error_log logs/error.log; +pid /tmp/nginx.pid; +worker_rlimit_nofile 8192; + +events { + worker_connections 4096; ## Default: 1024 +} http { - 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; + include conf/mime.types; + include /etc/nginx/proxy.conf; + include /etc/nginx/fastcgi.conf; + index index.html index.htm index.php; + + 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; + + default_type application/octet-stream; + log_format main '$remote_addr - $remote_user [$time_local] $status ' + '"$request" $body_bytes_sent "$http_referer" ' + '"$http_user_agent" "$http_x_forwarded_for"'; + access_log logs/access.log main; + sendfile on; + tcp_nopush on; + server_names_hash_bucket_size 128; # this seems to be required for some vhosts - server { - listen 8080;server_name localhost; - location / { - root /usr/share/nginx/html; - index index.html; - try_files $uri $uri/ /index.html; - } - } + server { + listen 8080;server_name localhost; + location / { + root /usr/share/nginx/html; + index index.html; + try_files $uri $uri/ /index.html; + } + } } \ No newline at end of file