[GH-ISSUE #523] Unable to upload files, when accessing using domain names in a local area network environment #301

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

Originally created by @MingfuYAN on GitHub (Jan 4, 2025).
Original GitHub issue: https://github.com/sigoden/dufs/issues/523

Problem

When accessing via a domain name in the local area network (LAN), file uploads fail, while downloads work normally. Please note that my domain name has been resolved to the LAN IP address. Uploads function correctly when accessing directly using the LAN IP address.

Configuration

services:
  dufs-share:
    image: sigoden/dufs:latest
    container_name: dufs
    restart: unless-stopped
    volumes:
      - /data0/mfyan/docker/dufs/files:/share
    ports:
      - "50000:5000"
    command: /share -A -a username:password@/:rw --enable-cors

Log

Screenshots/Media

image

Environment Information

  • Dufs version: v0.43.0
  • Browser/Webdav info: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
  • OS info: Linux amax 5.15.0-126-generic #136~20.04.1-Ubuntu SMP Thu Nov 14 16:38:05 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
  • Proxy server (if any):
Originally created by @MingfuYAN on GitHub (Jan 4, 2025). Original GitHub issue: https://github.com/sigoden/dufs/issues/523 **Problem** <!-- Provide a clear and concise description of the bug you're experiencing. What did you expect to happen, and what actually happened? --> When accessing via a domain name in the local area network (LAN), file uploads fail, while downloads work normally. Please note that my domain name has been resolved to the LAN IP address. Uploads function correctly when accessing directly using the LAN IP address. **Configuration** <!-- Please specify the Dufs command-line arguments or configuration used. --> <!-- If the issue is related to authentication/permissions, include auth configurations while concealing sensitive information (e.g., passwords). --> ```yml services: dufs-share: image: sigoden/dufs:latest container_name: dufs restart: unless-stopped volumes: - /data0/mfyan/docker/dufs/files:/share ports: - "50000:5000" command: /share -A -a username:password@/:rw --enable-cors ``` **Log** <!-- Attach relevant log outputs that can help diagnose the issue. --> **Screenshots/Media** <!-- If applicable, add screenshots or videos that help illustrate the issue, especially for WebUI problems. --> <img width="1918" alt="image" src="https://github.com/user-attachments/assets/343b68d4-72c3-4dc5-935a-67e972f31734" /> **Environment Information** - Dufs version: `v0.43.0` - Browser/Webdav info: `Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36` - OS info: `Linux amax 5.15.0-126-generic #136~20.04.1-Ubuntu SMP Thu Nov 14 16:38:05 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux` - Proxy server (if any): <!-- e.g. nginx, cloudflare -->
zhus closed this issue 2026-04-08 16:51:51 +03:00
Author
Owner

@sigoden commented on GitHub (Jan 4, 2025):

@MingfuYAN

Please submit the dufs log. Does it log any "PUT ..." requests?

<!-- gh-comment-id:2571004469 --> @sigoden commented on GitHub (Jan 4, 2025): @MingfuYAN Please submit the dufs log. Does it log any "PUT ..." requests?
Author
Owner

@MingfuYAN commented on GitHub (Jan 4, 2025):

No PUT requests

   docker logs dufs
Listening on:
  http://127.0.0.1:5000/
  http://172.22.0.2:5000/

2025-01-04T10:00:57Z INFO - 172.20.15.97 "GET /" 401
2025-01-04T10:01:00Z INFO - 172.20.15.97 "GET /" 200
<!-- gh-comment-id:2571082315 --> @MingfuYAN commented on GitHub (Jan 4, 2025): No PUT requests ``` docker logs dufs Listening on: http://127.0.0.1:5000/ http://172.22.0.2:5000/ 2025-01-04T10:00:57Z INFO - 172.20.15.97 "GET /" 401 2025-01-04T10:01:00Z INFO - 172.20.15.97 "GET /" 200 ```
Author
Owner

@sigoden commented on GitHub (Jan 4, 2025):

Sorry, This is not a problem with dufs.

We don't know what the problem is. Maybe it's that the browser doesn't support it, or maybe there's a configuration issue somewhere.

<!-- gh-comment-id:2571098582 --> @sigoden commented on GitHub (Jan 4, 2025): Sorry, This is not a problem with dufs. We don't know what the problem is. Maybe it's that the browser doesn't support it, or maybe there's a configuration issue somewhere.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#301