mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-09 19:13:26 +00:00
fix max upload
This commit is contained in:
@@ -1,6 +1,4 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cat /nginx.conf.sample
|
|
||||||
cat nginx.conf.sample | sed "s/\$MAX_BODY_SIZE/$MAX_BODY_SIZE/g" > /etc/nginx/nginx.conf
|
cat nginx.conf.sample | sed "s/\$MAX_BODY_SIZE/$MAX_BODY_SIZE/g" > /etc/nginx/nginx.conf
|
||||||
cat /etc/nginx/nginx.conf
|
|
||||||
nginx -g "daemon off;"
|
nginx -g "daemon off;"
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
user app;
|
user app;
|
||||||
worker_processes auto;
|
worker_processes auto;
|
||||||
|
|
||||||
error_log /var/log/ngnix_error.log info;
|
#error_log /var/log/ngnix_error.log info;
|
||||||
#error_log /dev/stdout info;
|
error_log /dev/stdout info;
|
||||||
|
|
||||||
pid /var/run/nginx.pid;
|
pid /var/run/nginx.pid;
|
||||||
#daemon off;
|
#daemon off;
|
||||||
@@ -52,6 +52,7 @@ http {
|
|||||||
root /var/alchemy/Phraseanet/www;
|
root /var/alchemy/Phraseanet/www;
|
||||||
|
|
||||||
index index.php;
|
index index.php;
|
||||||
|
client_max_body_size $MAX_BODY_SIZE;
|
||||||
|
|
||||||
location /api {
|
location /api {
|
||||||
rewrite ^(.*)$ /api.php/$1 last;
|
rewrite ^(.*)$ /api.php/$1 last;
|
||||||
@@ -60,7 +61,6 @@ http {
|
|||||||
location / {
|
location / {
|
||||||
# First attempt to serve request as file, then
|
# First attempt to serve request as file, then
|
||||||
# as directory, then fall back to index.html
|
# as directory, then fall back to index.html
|
||||||
client_max_body_size $MAX_BODY_SIZE;
|
|
||||||
try_files $uri $uri/ @rewriteapp;
|
try_files $uri $uri/ @rewriteapp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -397,7 +397,7 @@ max_input_time = 60
|
|||||||
;max_input_nesting_level = 64
|
;max_input_nesting_level = 64
|
||||||
|
|
||||||
; How many GET/POST/COOKIE input variables may be accepted
|
; How many GET/POST/COOKIE input variables may be accepted
|
||||||
;max_input_vars = 1000
|
max_input_vars = $MAX_INPUT_VARS
|
||||||
|
|
||||||
; Maximum amount of memory a script may consume (128MB)
|
; Maximum amount of memory a script may consume (128MB)
|
||||||
; http://php.net/memory-limit
|
; http://php.net/memory-limit
|
||||||
|
Reference in New Issue
Block a user