Add nginx.conf
This commit is contained in:
parent
db644edfd6
commit
e0b309823d
1 changed files with 31 additions and 0 deletions
31
nextcloud/nginx.conf
Normal file
31
nextcloud/nginx.conf
Normal file
|
@ -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;
|
||||||
|
}
|
Loading…
Reference in a new issue