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 }