How to fix the error "Request failed with status code 413" for openlist installed via 1panel (same applies to other installation methods)

Installed OpenList on 1panel, and got an error “Request failed with status code 413” when uploading large files.
In the OpenList Error Codes - OpenList Documentation, it is found that nginx parameters need to be modified.

client_max_body_size

Luckily, 1panel allows easy modification. Open the OpenList website configuration and set the upload limit as large as you want.

client_max_body_size 150M

Then click save and reload.

image