Skip to content

Commit

Permalink
Merge pull request #10 from reload/client_max_body_size
Browse files Browse the repository at this point in the history
Add a configurable client_max_body_size
  • Loading branch information
arnested authored Jun 28, 2024
2 parents 49481fa + 40ed798 commit 9e4cbf4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ COPY /drupal /

ENV NGINX_FASTCGI_PASS_HOST php
ENV NGINX_FASTCGI_PASS_PORT 9000
ENV NGINX_CLIENT_MAX_BODY_SIZE 128M

##
# Proxy
Expand Down
2 changes: 2 additions & 0 deletions context/drupal/etc/nginx/templates/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ server {

disable_symlinks off;

client_max_body_size ${NGINX_CLIENT_MAX_BODY_SIZE};

location / {
try_files $uri /index.php?$query_string;
}
Expand Down

0 comments on commit 9e4cbf4

Please sign in to comment.