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