mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-07 18:14:35 +00:00
fix max upload
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
cat /nginx.conf.sample
|
||||
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;"
|
||||
|
@@ -1,8 +1,8 @@
|
||||
user app;
|
||||
worker_processes auto;
|
||||
|
||||
error_log /var/log/ngnix_error.log info;
|
||||
#error_log /dev/stdout info;
|
||||
#error_log /var/log/ngnix_error.log info;
|
||||
error_log /dev/stdout info;
|
||||
|
||||
pid /var/run/nginx.pid;
|
||||
#daemon off;
|
||||
@@ -52,6 +52,7 @@ http {
|
||||
root /var/alchemy/Phraseanet/www;
|
||||
|
||||
index index.php;
|
||||
client_max_body_size $MAX_BODY_SIZE;
|
||||
|
||||
location /api {
|
||||
rewrite ^(.*)$ /api.php/$1 last;
|
||||
@@ -60,7 +61,6 @@ http {
|
||||
location / {
|
||||
# First attempt to serve request as file, then
|
||||
# as directory, then fall back to index.html
|
||||
client_max_body_size $MAX_BODY_SIZE;
|
||||
try_files $uri $uri/ @rewriteapp;
|
||||
}
|
||||
|
||||
|
@@ -397,7 +397,7 @@ max_input_time = 60
|
||||
;max_input_nesting_level = 64
|
||||
|
||||
; 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)
|
||||
; http://php.net/memory-limit
|
||||
|
Reference in New Issue
Block a user