huxiaoxu2019/hass-addon-frp-client

在HA上运行,连接frps正常,访问域名报错:400: Bad Request

waxgourd-ha opened this issue · 6 comments

@waxgourd-ha would you please be more specific for this issue, I'm happy to fix that~

Hi, I am facing the same problem. This is my configuration.
image
image

image
And this is the local frp dashboard, the dashboard on the frps also works well.
I also tried using the IP address like xxx.xxx.xxx.xxx:8123, also 400 Bad Request.

Thanks for the detailed information, I tried to reproduce the error 400: Bad Request, and found that you need to add this configuration in your configuration.yaml shown as the picture below. I believe that should be mentioned in the Installation section on Readme.

Screenshot 2024-03-15 at 12 44 47

You can edit that configuration by File Editor add-on

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 0.0.0.0/0

It's better to change 0.0.0.0/0 to your proxy server IP.

Sorry to miss the instructions, it works well right now.
Thanks for your attention!