Replies: 7 comments 63 replies
-
[EDIT] IF you use HA Cloudflare add-on skip this comment, I posted a solution down below that might work. Waiting for feedback from someone to give it a try. For the trusted_proxies in configuration.yaml, you only need 172.30.33.0/24. The reason is that Nginx is taking the traffic from Cloudflare that is proxied to the http port of HA. That's why there is "cloudflare: true" in the Nginx add-on config.
All of the remaining IPs can be removed. cloudflare tunnel, per the config you posted above I am guessing you are using the Cloudflare HAOS add-on. I don't run this add-on, I run cloudflared in a docker container that I configured manually. For the add-on, I don't know if it can support both "homeassistant.example.es" & "tesla.example.es". Perhaps you can look in the doc or request help from them.In case the add-on can't help you, here's my docker-compose.yaml file , some commands I used and example config.
Note: Directory structure:
^^ Follow on screen instructions to add the tunnel to your account.
Note: chmod 777 cuz I'm lazy, you can change it back to 755 once the config is complete.
I never tried it myself but it's probably permitted to create in Cloudflare DNS 2 CNAME "homeassistant.example.es" and "tesla.example.es" that points to the same argo tunnel... per your config, the add-on uses "external_hostname: homeassistant.example.es" , you probably need to set "additional_hosts: tesla.example.es". Not sure I was quite helpful but hoping the guidance above helps. [edit] added reference to "additional_hosts: tesla.example.es" |
Beta Was this translation helpful? Give feedback.
-
I just noticed your config for Cloudflare add-on shows:
My guess ... maybe all you need is to add The SSL cert must support both {homeassistant,tesla}.example.es - depending on your case, if you have your own domain use a wildcard cert otherwise use a multi domain SAN cert. |
Beta Was this translation helpful? Give feedback.
-
I got it working at the end... |
Beta Was this translation helpful? Give feedback.
-
Would you uave a timeline when will that wiki be ready? 😊 |
Beta Was this translation helpful? Give feedback.
-
I was searching and ended up here, and then i found this.. https://www.smartmotion.life/2024/04/06/tesla-integration-with-home-assistant/ i thought i just post it here too. |
Beta Was this translation helpful? Give feedback.
-
Reading the tutorial I got up to step 5, but when I try and start Tesla HTTP Proxy I get this error Should I be able to access my tesla.example.com domain myself? Because I get a 502 Bad gateway when trying to access that.
|
Beta Was this translation helpful? Give feedback.
-
I'm not sure if this will help you, but I was having a similar problem.
Deleting the Tesla HTTP Proxy addon and the Tesla Custom Integration, and
reinstalling both fixed it for me.
…On Thu, Aug 15, 2024, 5:06 PM jLynx ***@***.***> wrote:
sadly, no
—
Reply to this email directly, view it on GitHub
<#23 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABR7EXJY2WP2PU2QKWH77ATZRUJ5LAVCNFSM6AAAAABERAMLDOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTAMZVGI2DMNY>
.
You are receiving this because you commented.Message ID:
<llamafilm/tesla-http-proxy-addon/repo-discussions/23/comments/10352467@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
Hi, moving from issues, I'm trying to configure the http proxy with argo tunnel but I cant do it, info:
NGINX CONFIG:
domain: homeassistant.example.es
hsts: max-age=31536000; includeSubDomains
certfile: fullchain.pem
keyfile: privkey.pem
cloudflare: true
customize:
active: false
default: nginx_proxy_default*.conf
servers: nginx_proxy/*.conf
Cloudflared config:
external_hostname: homeassistant.example.es
additional_hosts: []
nginx_proxy_manager: false
tunnel_token: >-xxxxxxxxxxxxxxxxxxxxx
tunnel_name: Homeassistant
Config.yaml:
http:
use_x_forwarded_for: true
trusted_proxies:
- 172.30.33.0/24
- 127.0.0.1
- 10.0.0.2
#cloudflare ipv4
- 103.21.244.0/22
- 103.22.200.0/22
- 103.31.4.0/22
- 104.16.0.0/13
- 104.24.0.0/14
- 108.162.192.0/18
- 131.0.72.0/22
- 141.101.64.0/18
- 162.158.0.0/15
- 172.64.0.0/13
- 173.245.48.0/20
- 188.114.96.0/20
- 190.93.240.0/20
- 197.234.240.0/22
- 198.41.128.0/17
#cloudflare ipv6
- 2400:cb00::/32
- 2606:4700::/32
- 2803:f800::/32
- 2405:b500::/32
- 2405:8100::/32
- 2a06:98c0::/29
- 2c0f:f248::/32
On cloudflare web - Zero trust- I configure:
Public hostname -> homeassistant.example.es
Service -> http;//192.168.0.2:8123
On Dns Zone:
CNAME tesla.example.es -> https://homeassistant.example.es
Something wrong? Thanks for replying
Beta Was this translation helpful? Give feedback.
All reactions