[GH-ISSUE #418] Icons are vertical down the page #227

Closed
opened 2026-04-08 16:51:18 +03:00 by zhus · 4 comments
Owner

Originally created by @loricah on GitHub (Jul 19, 2024).
Original GitHub issue: https://github.com/sigoden/dufs/issues/418

Problem

When loading up dufs using the docker container, all of the icons are placed vertically down the left-hand side of the page.

Configuration

compose.dufs.yaml:

services:
  dufs:
    image: sigoden/dufs:latest
    container_name: dufs
    volumes:
      - .:/data
    command: /data -A -p 80
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.dufs.rule=Host(`${SERVER_DOMAIN:-localhost}`) && PathPrefix(`/files`)"
      - "traefik.http.routers.dufs.service=dufs”
      - "traefik.http.routers.dufs.entrypoints=websecure"
      - "traefik.http.services.dufs.loadbalancer.server.port=80"
    networks:
      - internal
    restart: unless-stopped

Log

dufs-1        | Listening on:
dufs-1        |    http://127.0.0.1:80/
dufs-1        |    http://172.18.0.2:80/
dufs-1        |
dufs-1        | 2024-07-19T19:50:48Z INFO - 172.18.0.3 “GET /files/“ 200

Environment:

  • Dufs version: latest docker container
  • Browser/Webdav info: Firefox/Chrome
  • OS info: Ubuntu 20.04.6 LTS
  • Proxy server: traefik
Originally created by @loricah on GitHub (Jul 19, 2024). Original GitHub issue: https://github.com/sigoden/dufs/issues/418 **Problem** When loading up dufs using the docker container, all of the icons are placed vertically down the left-hand side of the page. **Configuration** compose.dufs.yaml: ``` services: dufs: image: sigoden/dufs:latest container_name: dufs volumes: - .:/data command: /data -A -p 80 labels: - "traefik.enable=true" - "traefik.http.routers.dufs.rule=Host(`${SERVER_DOMAIN:-localhost}`) && PathPrefix(`/files`)" - "traefik.http.routers.dufs.service=dufs” - "traefik.http.routers.dufs.entrypoints=websecure" - "traefik.http.services.dufs.loadbalancer.server.port=80" networks: - internal restart: unless-stopped ``` **Log** ``` dufs-1 | Listening on: dufs-1 | http://127.0.0.1:80/ dufs-1 | http://172.18.0.2:80/ dufs-1 | dufs-1 | 2024-07-19T19:50:48Z INFO - 172.18.0.3 “GET /files/“ 200 ``` **Environment:** - Dufs version: latest docker container - Browser/Webdav info: Firefox/Chrome - OS info: Ubuntu 20.04.6 LTS - Proxy server: traefik
zhus closed this issue 2026-04-08 16:51:18 +03:00
Author
Owner

@sigoden commented on GitHub (Jul 20, 2024):

I am 100% sure that this is caused by misconfiguration and not a bug in dufs.

Regarding dufs, you need to study path-prefix.
Regarding traefik, I am not familiar with it and cannot give any suggestions.

<!-- gh-comment-id:2240820451 --> @sigoden commented on GitHub (Jul 20, 2024): I am 100% sure that this is caused by misconfiguration and not a bug in `dufs`. Regarding dufs, you need to study path-prefix. Regarding traefik, I am not familiar with it and cannot give any suggestions.
Author
Owner

@loricah commented on GitHub (Jul 20, 2024):

What path-prefix are you talking about? Excluding the traefik configuration, the dufs components of my configuration follow the setup written on the dufs docker page.

<!-- gh-comment-id:2240901273 --> @loricah commented on GitHub (Jul 20, 2024): What path-prefix are you talking about? Excluding the traefik configuration, the dufs components of my configuration follow the setup written on the [dufs docker page](https://hub.docker.com/r/sigoden/dufs).
Author
Owner

@sigoden commented on GitHub (Jul 20, 2024):

dufs --help | grep path-prefix

<!-- gh-comment-id:2240918706 --> @sigoden commented on GitHub (Jul 20, 2024): `dufs --help | grep path-prefix`
Author
Owner

@loricah commented on GitHub (Jul 23, 2024):

Just wanted to say thank you- that was the fix! Added --path-prefix /files to match my traefik config and it’s all working as it should.

<!-- gh-comment-id:2245122603 --> @loricah commented on GitHub (Jul 23, 2024): Just wanted to say thank you- that was the fix! Added `--path-prefix /files` to match my traefik config and it’s all working as it should.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#227