How it works...
To ensure that any files transmitted remain secure, we set up NGINX using HTTPS (which is covered in Chapter 4, All About SSLs) so that all data is encrypted in transit. We also use the basic authentication we went through in the previous recipe, so that the files are also secured by a username and password.
The root directive then sets where the files are stored, in this case, /var/www/webdav. At this stage of the configuration, it's exactly like any other static file serving. With the autoindex directive explicitly set to on, this automatically generates an index of the files so that they can be easily browsed.
To allow larger file uploads, client_max_body_size is set to 4g. If you need to upload files larger than 4 GB, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access