bookwork fix: make php version independant

This commit is contained in:
frederik
2024-02-09 15:35:22 +01:00
parent 2a68bb2e43
commit c100d19da1
4 changed files with 10 additions and 6 deletions
+3 -3
View File
@@ -183,7 +183,7 @@ http:// ${BIRDNETPI_URL} {
birdnet ${HASHWORD}
}
reverse_proxy /stream localhost:8000
php_fastcgi unix//run/php/php7.4-fpm.sock
php_fastcgi unix//run/php/php-fpm.sock
reverse_proxy /log* localhost:8080
reverse_proxy /stats* localhost:8501
reverse_proxy /terminal* localhost:8888
@@ -201,7 +201,7 @@ http:// ${BIRDNETPI_URL} {
file_server browse
}
reverse_proxy /stream localhost:8000
php_fastcgi unix//run/php/php7.4-fpm.sock
php_fastcgi unix//run/php/php-fpm.sock
reverse_proxy /log* localhost:8080
reverse_proxy /stats* localhost:8501
reverse_proxy /terminal* localhost:8888
@@ -324,7 +324,7 @@ EOF
configure_caddy_php() {
echo "Configuring PHP for Caddy"
sed -i 's/www-data/caddy/g' /etc/php/*/fpm/pool.d/www.conf
systemctl restart php7\*-fpm.service
systemctl restart php\*-fpm.service
echo "Adding Caddy sudoers rule"
cat << EOF > /etc/sudoers.d/010_caddy-nopasswd
caddy ALL=(ALL) NOPASSWD: ALL