From 58000a049fcd88b3ecab03290ef7d7668b34f375 Mon Sep 17 00:00:00 2001 From: Patrick McGuire Date: Tue, 19 Oct 2021 15:42:55 -0400 Subject: [PATCH] adding two variables for testing public installation access --- scripts/install_services.sh | 18 ++++++++++++++++++ scripts/update_services.sh | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/scripts/install_services.sh b/scripts/install_services.sh index 7be6d4a..b087af3 100755 --- a/scripts/install_services.sh +++ b/scripts/install_services.sh @@ -199,6 +199,24 @@ ${EXTRACTIONS_URL} { php_fastcgi unix//run/php/php7.3-fpm.sock } EOF + if [ ! -z ${EXTRACTIONLOG_URL} ];then + cat << EOF >> /etc/caddy/Caddyfile + +${EXTRACTIONLOG_URL} { + reverse_proxy localhost:8888 +} + systemctl reload caddy +} +EOF + fi + if [ ! -z ${BIRDNETLOG_URL} ];then + cat << EOF >> /etc/caddy/Caddyfile + +${BIRDNETLOG_URL} { + reverse_proxy localhost:8080 +} +EOF + fi systemctl reload caddy } diff --git a/scripts/update_services.sh b/scripts/update_services.sh index 1cdd1ce..ab35fb0 100755 --- a/scripts/update_services.sh +++ b/scripts/update_services.sh @@ -198,6 +198,24 @@ ${EXTRACTIONS_URL} { php_fastcgi unix//run/php/php7.3-fpm.sock } EOF + if [ ! -z ${EXTRACTIONLOG_URL} ];then + cat << EOF >> /etc/caddy/Caddyfile + +${EXTRACTIONLOG_URL} { + reverse_proxy localhost:8888 +} + systemctl reload caddy +} +EOF + fi + if [ ! -z ${BIRDNETLOG_URL} ];then + cat << EOF >> /etc/caddy/Caddyfile + +${BIRDNETLOG_URL} { + reverse_proxy localhost:8080 +} +EOF + fi systemctl reload caddy }