brenner-tobias / addon-cloudflared

Connect remotely to your Home Assistant instance without opening any ports using Cloudflared.
MIT License
863 stars 54 forks source link

400: Bad Request #680

Closed TomEnde92 closed 3 months ago

TomEnde92 commented 3 months ago

The problem

I have a domain from cloudflare and setup as show on the page, add the extra lines in the config, but still 400 bad request.

Details of home assistant:

Home assistant on proxmox.

Home Assistant

Core 2024.7.2 Supervisor 2024.06.2 Operating System 12.4 Frontend 20240710.0

What version of Cloudflared has the issue?

5.1.15

What was the last working version of Cloudflared?

No response

What type of installation are you running?

Home Assistant OS

Add-on YAML Configuration

external_hostname: homeendeassistant.work
additional_hosts: []

Anything in the logs that might be useful for us?

Logger: homeassistant.components.http.forwarded
Bron: components/http/forwarded.py:97
integratie: HTTP (documentatie, problemen)
Eerst voorgekomen: 21:21:19 (11 gebeurtenissen)
Laatst gelogd: 21:23:13

A request from a reverse proxy was received from 172.30.33.7, but your HTTP integration is not set-up for reverse proxies

Steps to reproduce the issue

Going to homeendeassistant.work to reproduce the 400 bad request error

Additional information

cloudflare

http: use_x_forwarded_for: true trusted_proxies:

TomEnde92 commented 3 months ago

Change position from the http section and add some extra proxies and working right now.

permban

http: ssl_certificate: /ssl/fullchain.pem ssl_key: /ssl/privkey.pem ip_ban_enabled: true login_attempts_threshold: 5 use_x_forwarded_for: true trusted_proxies:

  • 172.30.33.7
  • 192.168.2.163
  • 127.0.0.1
TomEnde92 commented 3 months ago

its solved