fix(caddy): override php_fastcgi try_files to prefer index.html
This commit is contained in:
@@ -72,9 +72,10 @@ create_necessary_dirs() {
|
||||
# AvianVisitors overlay. The avian/ symlink keeps assets + PHP shims
|
||||
# reachable at /avian/. The five frontend files at the EXTRACTED root
|
||||
# make the collage the default index for http://birdnet.local/ -
|
||||
# Caddy serves index.html before index.php, so BirdNET-Pi's stock UI
|
||||
# moves to http://birdnet.local/index.php (still linked from the
|
||||
# AvianVisitors menu drawer).
|
||||
# the matching try_files override in update_caddyfile.sh teaches
|
||||
# php_fastcgi to prefer index.html over index.php at the root, so
|
||||
# BirdNET-Pi's stock UI moves to http://birdnet.local/index.php
|
||||
# (still linked from the AvianVisitors menu drawer).
|
||||
if [ -d $my_dir/avian ]; then
|
||||
sudo -u ${USER} ln -fs $my_dir/avian ${EXTRACTED}/avian
|
||||
sudo -u ${USER} ln -fs $my_dir/avian/frontend/index.html ${EXTRACTED}/index.html
|
||||
|
||||
Reference in New Issue
Block a user