Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Environment variable BASE_URL has no effect #1398

Closed
5 tasks done
errestan opened this issue Nov 25, 2023 · 2 comments
Closed
5 tasks done

Environment variable BASE_URL has no effect #1398

errestan opened this issue Nov 25, 2023 · 2 comments
Assignees
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working

Comments

@errestan
Copy link

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

@errestan errestan added the 🐛 Bug [ISSUE] Ticket describing something that isn't working label Nov 25, 2023
@liss-bot
Copy link
Collaborator

If you're enjoying Dashy, consider dropping us a ⭐
🤖 I'm a bot, and this message was automated

@CrazyWolf13
Copy link
Collaborator

Already know, Please look through the issues and knows problems before submitting a issue.

Duplicate of #1036 Please close this.

@liss-bot liss-bot added the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Feb 3, 2024
@Lissy93 Lissy93 closed this as completed Feb 11, 2024
@liss-bot liss-bot removed the 👤 Awaiting Maintainer Response [ISSUE] Response from repo author is pending label Feb 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Bug [ISSUE] Ticket describing something that isn't working
Projects
Status: Done
Development

No branches or pull requests

4 participants