fix max upload

This commit is contained in:
Alexandre BRACH
2019-06-06 14:11:54 +02:00
parent c9841d9320
commit cb198fb52f
3 changed files with 4 additions and 6 deletions

View File

@@ -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;"

View File

@@ -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;
}

View File

@@ -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