Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

site_config.json changes #215

Open
doteater opened this issue Sep 25, 2024 · 2 comments
Open

site_config.json changes #215

doteater opened this issue Sep 25, 2024 · 2 comments
Labels
question Further information is requested

Comments

@doteater
Copy link

Greetings.

I've deployed with this helm and I'm trying to increase the max file size.

added this annotation to my ingress:

nginx.ingress.kubernetes.io/proxy-body-size: "50M"

but I'm still getting the "file size exceeded" error, must be the frappe settings?
I use kubectl to get a shell and run:

bench set-config max_file_size 52428800

but this doesn't seem to work, even if I run it on every node.

How do I increase the file upload size limit, but more generally, how do I define custom site configurations and have them be deployed to all nodes?

Thank you!

@doteater doteater added the question Further information is requested label Sep 25, 2024
@doteater
Copy link
Author

Similarly

bench enable-scheduler

if I run the command on one node, is that effective, or maybe there's a way to set it via values.yaml?

Thanks!

@revant
Copy link
Collaborator

revant commented Oct 6, 2024

Check env vars https://github.com/frappe/frappe_docker/blob/main/docs/environment-variables.md#environment-variables

You can also override the nginx template or nginx config with .Values.nginx.config

helm/erpnext/values.yaml

Lines 25 to 26 in 02f5932

# config: |
# # custom conf /etc/nginx/conf.d/default.conf

enable-scheduler is effective in any pod. You can make it a custom job if you wish to track.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants