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

Update max file size to 200M #325

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bookstack/DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ that there is no easy upgrade path between the two options.
## Known issues and limitations

- Ingress will not function due to the way the application stores image files.
- Uploading large images may result in PHP out of memory errors. This arises when PHP attempts to rescale the images and encounters an out of memory issue.

## Changelog & Releases

Expand Down
4 changes: 2 additions & 2 deletions bookstack/rootfs/etc/nginx/includes/server_params.conf
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ add_header X-Content-Type-Options nosniff;
add_header X-XSS-Protection "1; mode=block";
add_header X-Robots-Tag none;

client_max_body_size 64M;
client_max_body_size 200M;

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

location ~ /\.ht {
deny all;
}
}
4 changes: 2 additions & 2 deletions bookstack/rootfs/etc/php83/php-fpm.d/www.conf
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ pm.min_spare_servers = 2
pm.max_spare_servers = 5
pm.max_requests = 1024
clear_env = no
php_admin_value[post_max_size] = 64M
php_admin_value[upload_max_filesize] = 64M
php_admin_value[post_max_size] = 200M
php_admin_value[upload_max_filesize] = 200M