include {{ nginx_snippets_directory }}/global; # Do not serve hidden files except # - well-known as common web standard # - files prefixed with file because Nextcloud requires these locations for uploading files location ~ /\.(?!well-known)(?!file).* { log_not_found off; access_log off; return 404; }