Skip to content
This repository was archived by the owner on Jan 7, 2026. It is now read-only.

Commit 60eba30

Browse files
Chostakovitchroblandry
authored andcommitted
Increase max post file in nginx (#11)
1 parent b3d31b2 commit 60eba30

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@
33
[![Release](https://img.shields.io/github/release/LycheeOrg/Lychee-Laravel-Docker.svg?style=flat)](https://github.com/LycheeOrg/Lychee-Laravel-Docker/releases)
44
![Last Commit](https://img.shields.io/github/last-commit/LycheeOrg/Lychee-Laravel-Docker.svg?style=flat)
55

6-
## Prerequsites ##
6+
## Prerequisites ##
77

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

10+
## Image content
11+
12+
This image features Lychee (Laravel version), nginx and PHP-FPM.
13+
14+
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`.
15+
1016
## Setup ##
1117

1218
1. Create the db, username, password.

default.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ http {
2727
root /var/www/html/Lychee-Laravel/public;
2828
listen 80;
2929
server_name localhost;
30+
client_max_body_size 100M;
3031

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

0 commit comments

Comments
 (0)