Skip to content

Commit

Permalink
413 request entity too large (#66)
Browse files Browse the repository at this point in the history
* - fix HTTP/1.1 413 Request Entity Too Large when posting fat xhprof dumps

* - allow php to handle big posts

* - allow php to handle big posts
  • Loading branch information
FluffyDiscord committed Sep 6, 2023
1 parent b259479 commit 2c4125c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ COPY --from=rr /usr/bin/rr /app
ARG APP_VERSION=v1.0
ENV COMPOSER_ALLOW_SUPERUSER=1

RUN sed -i 's/memory_limit = 128M/memory_limit = 1024M/g' "$PHP_INI_DIR/php.ini-production" && \
sed -i 's/post_max_size = 8M/post_max_size = 1024M/g' "$PHP_INI_DIR/php.ini-production" && \
mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"

WORKDIR /app

RUN composer config --no-plugins allow-plugins.spiral/composer-publish-plugin false
Expand Down
2 changes: 2 additions & 0 deletions docker/nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ server {

server_name _;

client_max_body_size 1000M;

location /connection {
proxy_pass http://127.0.0.1:8089/connection;
proxy_http_version 1.1;
Expand Down

0 comments on commit 2c4125c

Please sign in to comment.