dashy icon indicating copy to clipboard operation
dashy copied to clipboard

Environment variable `BASE_URL` has no effect

Open errestan opened this issue 2 years ago • 1 comments

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 avatar Nov 25 '23 18:11 errestan

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

liss-bot avatar Nov 25 '23 18:11 liss-bot

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

Duplicate of #1036 Please close this.

CrazyWolf13 avatar Feb 03 '24 10:02 CrazyWolf13