From e0b309823deb63c6617f8bb41c7944f93c69d20b Mon Sep 17 00:00:00 2001 From: Tobias Strobel Date: Sat, 11 Sep 2021 15:59:29 +0200 Subject: [PATCH] Add nginx.conf --- nextcloud/nginx.conf | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 nextcloud/nginx.conf diff --git a/nextcloud/nginx.conf b/nextcloud/nginx.conf new file mode 100644 index 0000000..cd4ddec --- /dev/null +++ b/nextcloud/nginx.conf @@ -0,0 +1,31 @@ +user www-data; +worker_processes auto; +pid /var/run/nginx.pid; +events { + worker_connections 1024; + multi_accept on; + use epoll; +} +http { + server_names_hash_bucket_size 64; + access_log off; + error_log /var/log/nginx/error.log warn; + set_real_ip_from 127.0.0.1; + set_real_ip_from ::1; + real_ip_header X-Forwarded-For; + real_ip_recursive on; + include /etc/nginx/mime.types; + default_type application/octet-stream; + sendfile on; + send_timeout 3600; + tcp_nopush on; + tcp_nodelay on; + open_file_cache max=500 inactive=10m; + open_file_cache_errors on; + keepalive_timeout 65; + reset_timedout_connection on; + server_tokens off; + resolver 127.0.0.53 valid=30s; + resolver_timeout 5s; + include /etc/nginx/conf.d/*.conf; +} \ No newline at end of file