File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 1212 keepalive_timeout 65 ;
1313 sendfile on;
1414
15- proxy_cache_path /cache/cache levels=1:2 keys_zone=cache:16m inactive=1y use_temp_path=off;
15+ proxy_cache_path /cache/cache levels=1:2 keys_zone=cache:16m inactive=1y max_size=CACHE_MAX_SIZE use_temp_path=off;
1616 resolver RESOLVER valid=30s ;
1717
1818 # this is necessary for us to be able to disable request buffering in all cases
Original file line number Diff line number Diff line change 3131UPSTREAM_WITHOUT_PORT=$( echo ${UPSTREAM} | sed -r " s/.*:\/\/(.*):.*/\1/g" )
3232echo Using resolver $RESOLVER and $UPSTREAM [$( dig +short ${UPSTREAM_WITHOUT_PORT} ) ] as upstream.
3333
34+ CACHE_MAX_SIZE=${CACHE_MAX_SIZE:- 75g}
35+ echo Using cache max size $CACHE_MAX_SIZE
36+
3437CONFIG=/usr/local/openresty/nginx/conf/nginx.conf
3538
3639# Update nginx config
3740sed -i -e s! UPSTREAM! " $UPSTREAM " ! g $CONFIG
3841sed -i -e s! PORT! " $PORT " ! g $CONFIG
3942sed -i -e s! RESOLVER! " $RESOLVER " ! g $CONFIG
43+ sed -i -e s! CACHE_MAX_SIZE! " $CACHE_MAX_SIZE " ! g $CONFIG
4044
4145# setup ~/.aws directory
4246AWS_FOLDER=' /root/.aws'
You can’t perform that action at this time.
0 commit comments