Skip to content

Commit

Permalink
Update ss-install.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
jessuppi committed Jul 26, 2018
1 parent 842140c commit 6fcd322
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ss-install.txt
Expand Up @@ -236,6 +236,11 @@ rm -R -f /tmp/nginx-conf.txt /tmp/nginx-conf /tmp/nginx.conf
cd /tmp/
wget --no-cache http://mirrors.slickstack.io/nginx/nginx-conf.txt

## replace placeholders with slickstack variables ##
sed -i "s/@CACHEMEMORY/${cachememory}/g" /tmp/nginx-conf.txt
sed -i "s/@CACHEINACTIVE/${cacheinactive}/g" /tmp/nginx-conf.txt
sed -i "s/@CACHEMAXSIZE/${cachemaxsize}/g" /tmp/nginx-conf.txt

## rename files ##
mv nginx-conf.txt nginx.conf

Expand Down Expand Up @@ -270,6 +275,7 @@ fi

## replace @DOMAIN placeholder with slickstack variable ##
sed -i "s/@DOMAIN/${domain}/g" /tmp/default.txt
sed -i "s/@CACHEVALID/${cachevalid}/g" /tmp/default.txt

## enable or disable fastcgi cache ##
## set skip_cache default to 0 only if fastcgi cache enabled in ss-config ##
Expand Down

0 comments on commit 6fcd322

Please sign in to comment.