[GH-ISSUE #571] 希望可以支持proxy protocol #338

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

Originally created by @xiaowen-king on GitHub (Apr 9, 2025).
Original GitHub issue: https://github.com/sigoden/dufs/issues/571

#原因#

我在本地网络上部署了Dufs,然后通过frp暴露到公网上,但是因为Dufs不能支持proxy protocol导致了我把服务暴露出去之后Dufs日志里面获取到的访客地址都是127.0.0.1,所以希望可以支持proxy protocol,这样我才能更方便的获取到访问者的真实地址。

Originally created by @xiaowen-king on GitHub (Apr 9, 2025). Original GitHub issue: https://github.com/sigoden/dufs/issues/571 #原因# 我在本地网络上部署了Dufs,然后通过frp暴露到公网上,但是因为Dufs不能支持proxy protocol导致了我把服务暴露出去之后Dufs日志里面获取到的访客地址都是127.0.0.1,所以希望可以支持proxy protocol,这样我才能更方便的获取到访问者的真实地址。
zhus closed this issue 2026-04-08 16:52:09 +03:00
Author
Owner

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

see https://github.com/sigoden/dufs?tab=readme-ov-file#log-format

Image

you can use headers like $http_x_real_ip or $http_x_forwarded_for

<!-- gh-comment-id:2788677517 --> @sigoden commented on GitHub (Apr 9, 2025): see https://github.com/sigoden/dufs?tab=readme-ov-file#log-format ![Image](https://github.com/user-attachments/assets/4bc6a29b-6408-44e6-8501-fdaaff75e3ab) you can use headers like `$http_x_real_ip` or `$http_x_forwarded_for`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#338