Environment variable `BASE_URL` has no effect
Environment
Self-Hosted (Docker)
System
Ubuntu: 22.04 Docker: 24.0.7 Docker Compose: 1.29.2
Version
2.1.1
Describe the problem
The BASE_URL environment variable has no effect. I'm attempting to run Dashy at: http://localhost:4000/dashy but while the initial page starts loading it is unable to retrieve resources because the URLs used for CSS and scripts do not contain the sub-directory.
My stripped down Docker compose file is as follows:
---
version: '3.8'
services:
app:
image: lissy93/dashy
ports:
- 4000:80
environment:
- BASE_URL=/dashy
When access via: http://localhost:4000/ everything works as expected. But If accessed via http://localhost:4000/dashy I get a 404. If I add labels to use Traefik as a reverse proxy I can then reach the page but the page can not load CSS etc.
Apologies If I've missed something obvious. I've read through a good amount of the documentation and read a few bug reports of people trying to do something similar but I've been unable to solve this issue.
Additional info
No response
Please tick the boxes
- [X] You have explained the issue clearly, and included all relevant info
- [X] You are using a supported version of Dashy
- [X] You've checked that this issue hasn't already been raised
- [X] You've checked the docs and troubleshooting guide
- [X] You agree to the code of conduct
If you're enjoying Dashy, consider dropping us a ⭐
🤖 I'm a bot, and this message was automated
Already know, Please look through the issues and knows problems before submitting a issue.
Duplicate of #1036 Please close this.