basic readme

This commit is contained in:
Robin Appelman 2020-12-15 00:34:46 +01:00
commit 5084011305

27
README.md Normal file
View file

@ -0,0 +1,27 @@
# Tasproxy
Auto-discovery reverse proxy for [tasmota](https://tasmota.github.io/docs/)
## Why
Remembering what ip addresses all of your tasmota's ip addresses is a pain.
## Setup
Ensure your tasmota devices are connected to an MQTT server with the following "Full Topic":
%prefix%/%topic%/%hostname%/
Run the binary with the following environment variables
- `MQTT_HOSTNAME`: hostname of the MQTT server to connect to
- `MQTT_PORT`: port of the mqtt server to connect to, defaults to 1883
- `PORT`: port this binary MQTT listen on, defaults to 80
Setup dns/hosts/etc to point *.example.com to the server running this binary
## Usage
The proxy server will use MQTT to discover and gather the ip addresses of your tasmota devices.
Any request made to `%hostname%.example.com` will be proxied to the tasmota device with the corresponding hostname.