Browse Source

Fixed size 50MB for fastcgi.conf

old-stable
Mitesh Shah 11 years ago
parent
commit
11ccabc584
  1. 2
      etc/nginx/conf.d/fastcgi.conf
  2. 6
      install.sh

2
etc/nginx/conf.d/fastcgi.conf

@ -1,6 +1,6 @@
# Fastcgi Cahe Settings # Fastcgi Cahe Settings
fastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=WORDPRESS:500m inactive=60m; fastcgi_cache_path /var/run/nginx-cache levels=1:2 keys_zone=WORDPRESS:50m inactive=60m;
fastcgi_cache_key "$scheme$request_method$host$request_uri"; fastcgi_cache_key "$scheme$request_method$host$request_uri";
fastcgi_cache_use_stale error timeout invalid_header updating http_500 http_503; fastcgi_cache_use_stale error timeout invalid_header updating http_500 http_503;
fastcgi_cache_valid any 1h; fastcgi_cache_valid any 1h;

6
install.sh

@ -158,11 +158,11 @@ then
fi fi
# Adjust FastCGI Cache Size 20% Of /var/run # Adjust FastCGI Cache Size 20% Of /var/run
VARRUNSIZE=$(df --block-size=M /var/run | awk '{print $4}' | tail -n1 |cut -d'M' -f1) #VARRUNSIZE=$(df --block-size=M /var/run | awk '{print $4}' | tail -n1 |cut -d'M' -f1)
FCSIZE=$(expr $VARRUNSIZE \* 25 / 100) #FCSIZE=$(expr $VARRUNSIZE \* 25 / 100)
# Change Size # Change Size
sed -i "s/500m/$FCSIZE\m/" /usr/share/easyengine/nginx/conf.d/fastcgi.conf || OwnError "Unable To Change Fastcgi Cache Size" #sed -i "s/500m/$FCSIZE\m/" /usr/share/easyengine/nginx/conf.d/fastcgi.conf || OwnError "Unable To Change Fastcgi Cache Size"
# Git Config Settings # Git Config Settings
EEGITNAME=$(git config user.name) EEGITNAME=$(git config user.name)

Loading…
Cancel
Save