From b464129446ea9eb76efb10abbad36e44a793b247 Mon Sep 17 00:00:00 2001 From: jtschoonhoven Date: Thu, 30 Apr 2020 10:46:24 -0700 Subject: [PATCH] move nginx deps to external buildpack --- VERSION | 2 +- bin/compile | 24 ------------------------ 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/VERSION b/VERSION index bcab45a..81340c7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.0.3 +0.0.4 diff --git a/bin/compile b/bin/compile index 35f8f24..07832ca 100755 --- a/bin/compile +++ b/bin/compile @@ -38,30 +38,6 @@ else TOR_IS_CACHED=0 fi -################# -# CONFIGURE NGINX -################# -echo "[+] Configuring nginx" | indent -# https://stackoverflow.com/a/48406504/3076390 -if [ -f /etc/nginx/nginx.conf ]; then - sed -e '/http {/a\'$'\n''CLIENTSCRIPT2="hello"' /etc/nginx/nginx.conf -else - echo " - WARNING: nginx.conf does not exist, creating..." - mkdir -p /etc/nginx/ - echo which nginx - cp ${BUILDPACK_DIR}/lib/nginx.conf /etc/nginx/nginx.conf -fi - -cat > /etc/nginx/conf.d/tor.conf << EOL -server { - listen ${LOCALHOST_ADDR}; - # server_name ${HIDDEN_DOT_ONION}; - server_name _ default; - root /etc/nginx/html; - index /etc/nginx/html/index.html; -} -EOL - ################################################################################ # GET SOURCES ################################################################################