wimaha / TeslaBleHttpProxy

TeslaBleHttpProxy is a program written in Go that receives HTTP requests and forwards them via Bluetooth to a Tesla vehicle. The program can, for example, be easily used together with evcc.
Apache License 2.0
31 stars 7 forks source link

Allow passing in addr for http proxy to listen on #55

Closed carposio closed 3 weeks ago

carposio commented 3 weeks ago

To allow restricting access to the http proxy, read an optional addr (host:port) from an environment variable (httpListenAddress). This also allows setting it in docker-compose.yml

For example, this runs the proxy server on 127.0.0.1:8080:

httpListenAddress="127.0.0.1:8080" ./TeslaBleHttpProxy