Files
DetectionLab/Vagrant/resources/malcolm/file-upload/nginx/sites-available/default
2021-08-06 10:35:01 +02:00

31 lines
660 B
Plaintext

server {
listen 80 default_server;
sendfile on;
client_max_body_size 20G;
client_body_buffer_size 4M;
root /var/www/upload;
index index.php index.html index.htm;
location ^~ /server/php/files {
deny all;
return 404;
}
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_buffers 16 64k;
fastcgi_buffer_size 256k;
fastcgi_read_timeout 300s;
fastcgi_send_timeout 300s;
fastcgi_busy_buffers_size 384k;
fastcgi_request_buffering off;
fastcgi_pass unix:/run/php/php7.3-fpm.sock;
}
location ~ /\.ht {
deny all;
}
}