charset utf-8; client_body_buffer_size 512k; # set max upload size and increase upload timeout: # client_max_body_size 512M; client_max_body_size 2G; # for nextcloud # client_body_timeout 5s; client_body_timeout 300s; client_header_timeout 5s; fastcgi_buffers 64 4K; # for nextcloud gzip on; gzip_comp_level 4; gzip_disable "MSIE [1-6]\.(?!.*SV1)"; gzip_http_version 1.1; gzip_min_length 512; #gzip_proxied any; gzip_proxied expired no-cache no-store private no_last_modified no_etag auth; gzip_types application/atom+xml text/javascript application/javascript application/json application/ld+json application/manifest+json application/rss+xml application/vnd.geo+json application/vnd.ms-fontobject application/wasm application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/bmp image/svg+xml image/x-icon text/cache-manifest text/css text/plain text/vcard text/vnd.rim.location.xloc text/vtt text/x-component text/x-cross-domain-policy; gzip_static on; #gzip_types text/plain text/css text/javascript application/javascript text/xml application/xml application/xml+rss; gzip_vary on; ignore_invalid_headers on; keepalive_disable none; keepalive_requests 50; keepalive_timeout 75s; limit_req_zone $binary_remote_addr zone=gulag:1m rate=60r/m; log_format main '$remote_addr $host $remote_user [$time_local] "$request" $status $body_bytes_sent "$http_referer" "$http_user_agent" $ssl_cipher $request_time'; max_ranges 1; msie_padding off; open_file_cache max=1000 inactive=2h; open_file_cache_errors on; open_file_cache_min_uses 1; open_file_cache_valid 1h; output_buffers 1 512; postpone_output 1440; read_ahead 512K; recursive_error_pages on; reset_timedout_connection on; send_timeout 15s; sendfile on; server_name_in_redirect off; server_tokens off; source_charset utf-8; tcp_nodelay on; tcp_nopush off;