adding two variables for testing public installation access

This commit is contained in:
Patrick McGuire
2021-10-19 15:42:55 -04:00
parent 3f44ba2550
commit 58000a049f
2 changed files with 36 additions and 0 deletions
+18
View File
@@ -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
}
+18
View File
@@ -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
}