Skip to content

Commit

Permalink
Add client_max_body_size directive to nginx configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkCalvert committed Feb 8, 2024
1 parent d83eb8b commit b345d9b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nginx/setup/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ server {
error_log /srv/app/logs/nginx_error.log error;
error_log /var/log/nginx/errror.log error;

client_max_body_size 100M;

location / {
proxy_pass http://ckan:5000/;
proxy_set_header X-Forwarded-For $remote_addr;
Expand Down
2 changes: 2 additions & 0 deletions nginx/setup/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ server {
error_log /srv/app/logs/nginx_error.log error;
error_log /var/log/nginx/errror.log error;

client_max_body_size 100M;

location / {
proxy_pass http://${CKAN_CONTAINER_NAME}:${CKAN_PORT}/;
proxy_set_header X-Forwarded-For $remote_addr;
Expand Down

0 comments on commit b345d9b

Please sign in to comment.