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 #!/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;"

View File

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

View File

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