[GH-ISSUE #587] théme not available when destination path folder is empty #351

Closed
opened 2026-04-08 16:52:15 +03:00 by zhus · 1 comment
Owner

Originally created by @PtitLutinn on GitHub (Jun 8, 2025).
Original GitHub issue: https://github.com/sigoden/dufs/issues/587

Problem
I want the theme to be available when the folder is empty. I tried and the theme don't charge because the ASSETS_PREFIX variable don't work (the link for the assets on the resulting page isn't what I expected. The only way I can make the theme work is by putting the git repo on the destination path folder.

Configuration

serve-path: '/data/1/web/dufs/partage'
bind: 0.0.0.0
port: 5000
path-prefix: /fichiers
hidden:
  - tmp
  - '*.log'
  - '*.lock'
auth:
  - admin:admin@/:rw
  - user:pass@/src:rw,/share
  - '@/'  # According to the YAML spec, quoting is required.
allow-all: false
allow-upload: true
allow-delete: true
allow-search: true
allow-symlink: true
allow-archive: true
enable-cors: true
render-index: true
render-try-index: true
render-spa: true
assets: "/home/nael/dufs/assets/"
log-format: '$remote_addr "$request" $status $http_user_agent'
log-file: ./dufs.log
compress: low

and I launch the serveur with dufs -c .dufs_config.yaml

Log

The html search the assets on https://pyro.petitslutins.eu/partage/dufs_v0.43.0/index.js” but thy aren't here

Environment Information

  • Dufs version: 0.43
  • Browser/Webdav info: librewolf and firefox
  • OS info: arch linux
  • Proxy server (if any): nginx
Originally created by @PtitLutinn on GitHub (Jun 8, 2025). Original GitHub issue: https://github.com/sigoden/dufs/issues/587 **Problem** I want the theme to be available when the folder is empty. I tried and the theme don't charge because the __ASSETS_PREFIX__ variable don't work (the link for the assets on the resulting page isn't what I expected. The only way I can make the theme work is by putting the git repo on the destination path folder. **Configuration** ``` serve-path: '/data/1/web/dufs/partage' bind: 0.0.0.0 port: 5000 path-prefix: /fichiers hidden:   - tmp   - '*.log'   - '*.lock' auth:   - admin:admin@/:rw   - user:pass@/src:rw,/share   - '@/'  # According to the YAML spec, quoting is required. allow-all: false allow-upload: true allow-delete: true allow-search: true allow-symlink: true allow-archive: true enable-cors: true render-index: true render-try-index: true render-spa: true assets: "/home/nael/dufs/assets/" log-format: '$remote_addr "$request" $status $http_user_agent' log-file: ./dufs.log compress: low ``` and I launch the serveur with `dufs -c .dufs_config.yaml` **Log** The html search the assets on https://pyro.petitslutins.eu/partage/__dufs_v0.43.0__/index.js” but thy aren't here **Environment Information** - Dufs version: 0.43 - Browser/Webdav info: librewolf and firefox - OS info: arch linux - Proxy server (if any): nginx
zhus closed this issue 2026-04-08 16:52:15 +03:00
Author
Owner

@sigoden commented on GitHub (Jun 9, 2025):

This is because you don't understand how custom assets work. Please try experimenting more on your own.

<!-- gh-comment-id:2954371585 --> @sigoden commented on GitHub (Jun 9, 2025): This is because you don't understand how custom assets work. Please try experimenting more on your own.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#351