How to edit site_config.json in a Docker container

I have a production version of ERPNext running on a VPS which is installed using Docker.

I want to update file attachment limit from 10 MB to 50 MB for this I will have to edit the file site_config.json.

How can I edit this file?

Regards,

Documentation: frappe_docker/docs/site-operations.md at main · frappe/frappe_docker · GitHub

Current setup allows client_max_body_size 50m;.
Beyond 50 MB you will also need to override the nginx config.

this is the default nginx template file https://github.com/frappe/frappe_docker/blob/main/images/nginx/nginx-template.conf, It is located at, /etc/nginx/templates/default.conf.template in the frontend container. You can override it by mounting your own custom template. That template rendering logic is part of official nginx image GitHub - nginxinc/docker-nginx-unprivileged: Unprivileged NGINX Dockerfiles, you need the template in place and environment variables mentioned in template passed to nginx / frontend container.

1 Like