Skip to content

Commit 109f6a4

Browse files
committed
feat: add sensitive default upload settings
1 parent e050cb1 commit 109f6a4

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

nginx.conf.example

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ server {
99
gzip_comp_level 9;
1010

1111
send_timeout 3600;
12+
client_max_body_size 50M;
1213

1314
location / {
1415
try_files $uri $uri/ /index.php?$args;

public/.htaccess

+3
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,6 @@
105105
</IfModule>
106106

107107
</IfModule>
108+
109+
php_value upload_max_filesize 50M
110+
php_value post_max_size 50M

public/.user.ini.example

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
; If your server uses a CGI/FastCGI SAPI, PHP supports per-directory configuration
22
; via .user.ini files. For example, you can increase the upload file and post size
3-
; limits by setting the desired values here renaming this file into .user.ini.
3+
; limits by setting the desired values here and renaming this file into .user.ini.
44

5-
upload_max_filesize = 20M
6-
post_max_size = 21M
5+
upload_max_filesize = 50M
6+
post_max_size = 50M

0 commit comments

Comments
 (0)