From 2837966da2cce69b577c5a1b68ecc260bd76661d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 24 Nov 2021 12:02:30 +0000 Subject: [PATCH] Don't need webserver cache --- deploy/i2p | 14 +------------- deploy/onion | 14 +------------- 2 files changed, 2 insertions(+), 26 deletions(-) diff --git a/deploy/i2p b/deploy/i2p index aabea5d18..a2eca60c2 100755 --- a/deploy/i2p +++ b/deploy/i2p @@ -20,12 +20,6 @@ if [[ "$1" == 'remove' ]]; then rm "/etc/nginx/sites-enabled/${username}" rm "/etc/nginx/sites-availale/${username}" rm -rf ${install_destination} - if [ -d /var/www/cache ]; then - rm -rf /var/www/cache - fi - if [ -d /srv/http/cache ]; then - rm -rf /srv/http/cache - fi userdel -r ${username} echo 'Epicyon i2p instance removed' exit 0 @@ -326,15 +320,9 @@ web_dir=/var/www if [ -f /usr/bin/pacman ]; then web_dir=/srv/http fi -if [ ! -d ${web_dir}/cache ]; then - mkdir ${web_dir}/cache -fi echo "Creating nginx virtual host for http://${I2P_DOMAIN}" -{ echo "proxy_cache_path ${web_dir}/cache levels=1:2 keys_zone=my_cache:10m max_size=10g"; - echo ' inactive=60m use_temp_path=off;' - echo ''; - echo 'server {'; +{ echo 'server {'; echo " listen 127.0.0.1:${NGINX_PORT} default_server;"; echo " server_name ${I2P_DOMAIN};" echo ''; diff --git a/deploy/onion b/deploy/onion index cc214f758..a93599731 100755 --- a/deploy/onion +++ b/deploy/onion @@ -15,12 +15,6 @@ if [[ "$1" == 'remove' ]]; then rm "/etc/nginx/sites-enabled/${username}" rm "/etc/nginx/sites-availale/${username}" rm -rf ${install_destination} - if [ -d /var/www/cache ]; then - rm -rf /var/www/cache - fi - if [ -d /srv/http/cache ]; then - rm -rf /srv/http/cache - fi userdel -r ${username} echo 'Epicyon onion instance removed' exit 0 @@ -245,18 +239,12 @@ web_dir=/var/www if [ -f /usr/bin/pacman ]; then web_dir=/srv/http fi -if [ ! -d ${web_dir}/cache ]; then - mkdir ${web_dir}/cache -fi if [ ! -d /var/www/${ONION_DOMAIN}/htdocs ]; then mkdir -p /var/www/${ONION_DOMAIN}/htdocs fi echo "Creating nginx virtual host for ${ONION_DOMAIN}" -{ echo "proxy_cache_path ${web_dir}/cache levels=1:2 keys_zone=my_cache:10m max_size=10g"; - echo ' inactive=60m use_temp_path=off;' - echo ''; - echo 'server {'; +{ echo 'server {'; echo " listen 127.0.0.1:${NGINX_PORT} default_server;"; echo " server_name ${ONION_DOMAIN};" echo '';