Skip to content

Commit 3546f55

Browse files
fix(firefly): set Data Importer APP_URL for subdirectory install
Configure APP_URL and ASSET_URL during install so redirects (e.g. Start Over) resolve to /dataimporter/ instead of the server root. Fixes #14830 Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 162cb9b commit 3546f55

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

install/firefly-install.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,13 @@ msg_ok "Configured Firefly III"
3737

3838
msg_info "Configuring Data Importer"
3939
cp /opt/firefly/dataimporter/.env.example /opt/firefly/dataimporter/.env
40-
sed -i "s#FIREFLY_III_URL=#FIREFLY_III_URL=http://${LOCAL_IP}#g" /opt/firefly/dataimporter/.env
40+
sed -i \
41+
-e "s#FIREFLY_III_URL=#FIREFLY_III_URL=http://${LOCAL_IP}#g" \
42+
-e "s|^APP_URL=.*|APP_URL=http://${LOCAL_IP}/dataimporter|" \
43+
-e "s|^ASSET_URL=.*|ASSET_URL=/dataimporter|" \
44+
/opt/firefly/dataimporter/.env
45+
cd /opt/firefly/dataimporter
46+
$STD php artisan config:clear
4147
chown -R www-data:www-data /opt/firefly
4248
msg_ok "Configured Data Importer"
4349

0 commit comments

Comments
 (0)