Skip to content

Commit

Permalink
Increase max post file in nginx (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chostakovitch authored and roblandry committed Feb 25, 2019
1 parent b3d31b2 commit 60eba30
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@
[![Release](https://img.shields.io/github/release/LycheeOrg/Lychee-Laravel-Docker.svg?style=flat)](https://github.com/LycheeOrg/Lychee-Laravel-Docker/releases)
![Last Commit](https://img.shields.io/github/last-commit/LycheeOrg/Lychee-Laravel-Docker.svg?style=flat)

## Prerequsites ##
## Prerequisites ##

* You must have a database docker running **OR** create one in your docker-compose.yml.

## Image content

This image features Lychee (Laravel version), nginx and PHP-FPM.

Note that nginx will accept by default images up to 100MB (`client_max_body_size 100M`), according to the [recommendations of the Lychee-Laravel FAQ](https://github.com/LycheeOrg/Lychee/wiki/FAQ#i-cant-upload-photos). However, to upload large files, you will need to modify `php.ini` directives as well (see FAQ). To do so, please mount your custom `php.ini` file to `/etc/php/7.3/php/php.ini`.

## Setup ##

1. Create the db, username, password.
Expand Down
1 change: 1 addition & 0 deletions default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ http {
root /var/www/html/Lychee-Laravel/public;
listen 80;
server_name localhost;
client_max_body_size 100M;

# serve static files directly
location ~* \.(jpg|jpeg|gif|css|png|js|ico|html)$ {
Expand Down

0 comments on commit 60eba30

Please sign in to comment.