diff --git a/rootfs/tmp/etc/nginx/nginx.conf b/rootfs/tmp/etc/nginx/nginx.conf index c883493..4df2e00 100644 --- a/rootfs/tmp/etc/nginx/nginx.conf +++ b/rootfs/tmp/etc/nginx/nginx.conf @@ -2,8 +2,8 @@ user REPLACE_SERVICE_USER; worker_processes auto; daemon off; -error_log /data/logs/nginx/nginx.log warn; pid /run/nginx.pid; +error_log /data/logs/nginx/nginx.log warn; events { worker_connections 1024; @@ -15,10 +15,11 @@ http { sendfile on; keepalive_timeout 65; gzip on; - map $http_upgrade $connection_upgrade { default upgrade; '' close; } disable_symlinks off; - root REPLACE_SERVER_WWW_DIR; + server_names_hash_bucket_size 128; access_log /data/logs/nginx/access.REPLACE_SERVER_NAME.log; + map $http_upgrade $connection_upgrade { default upgrade; '' close; } + root REPLACE_SERVER_WWW_DIR; server { listen REPLACE_SERVER_PORT default_server; @@ -32,7 +33,9 @@ http { add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always; add_header Content-Security-Policy "script-src 'self' 'unsafe-inline' 'unsafe-eval' *; frame-src 'self' *; object-src 'self'" always; proxy_intercept_errors off; - + client_max_body_size 0; + send_timeout 3600; + location ^~ /favicon.ico { alias REPLACE_SERVER_WWW_DIR/favicon.ico; allow all; diff --git a/rootfs/tmp/etc/nginx/vhosts.d/template b/rootfs/tmp/etc/nginx/vhosts.d/template index 7251c01..3ed4411 100644 --- a/rootfs/tmp/etc/nginx/vhosts.d/template +++ b/rootfs/tmp/etc/nginx/vhosts.d/template @@ -9,6 +9,8 @@ server { keepalive_timeout 75 75; access_log /data/logs/nginx/access.REPLACE_ONION_SITE.log; error_log /data/logs/nginx/error.REPLACE_ONION_SITE.log info; + client_max_body_size 0; + send_timeout 3600; add_header X-Frame-Options "SAMEORIGIN" always; add_header X-XSS-Protection "1; mode=block" always; add_header X-Content-Type-Options "nosniff" always; @@ -19,7 +21,7 @@ server { index index.php index.html index.cgi index.pl index.aspx index.txt index.json index.unknown.php index.default.php; location / { - root REPLACE_ONION_WWW_DIR; + root REPLACE_ONION_WWW_DIR; } location ^~ /favicon.ico { alias REPLACE_SERVER_WWW_DIR/favicon.ico;