Tags: iamtelescope/telescope
Tags
feat: add runtime BASE_URL support for deployment under custom paths (… …#64) Summary Implement dynamic base URL support allowing Telescope to be deployed under any path prefix (e.g., /telescope, /app, /monitoring) without requiring rebuilds. Changes Made Backend (Django) - Extract `BASE_URL` from environment variable in `settings.py` - Apply `FORCE_SCRIPT_NAME` to prefix all Django URLs - Make `LOGIN_URL`, &`LOGIN_REDIRECT_URL` dynamic - Update index view to pass `base_url` as template context - Udated Django templates to handle base_url Frontend (Vue.js) - Add Django template `<base>` tag to `index.html` for auto-detection - Refactor composables (`usePatchSource`, `useDeleteSource`) to use HTTP utility - Simplify router to auto-detect base from `<base>` tag - Changed number of absolute paths to relative paths. Helm Templates updated * Passing base_url to Django templates * README.md update * removed comments * Added fall back script to catch base URl when going direct to ui server * Replicating script to Auth template Co-authored-by: Toocky - APIpie.ai <[email protected]>
PreviousNext