kstobbe / esp-update-server

Webserver to handle binary files for ESP32 and ESP8266 Over-The-Air updates.
MIT License
29 stars 15 forks source link

Adding very basic authentication and keeping track of known devices #7

Open marcovannoord opened 3 years ago

marcovannoord commented 3 years ago

To make my life easier, i wanted to keep track of the device that have contacted the update-server. That way, i don't have to pay attention to the MAC-address when flashing a new device: it will show up in the update-server. This also helps in keeping track of which device has been trying to update recently.

Furthermore, it could use some very basic authentication, so i have added that in the users.yml. Just supply that a list of users/passwords that are allowed to log in.

Please do note that this is a breaking change, hence the major version bump. This is due to the swapping of the dev and ver parameter in the update URL.

Also i fixed a bug that would prevent uploading any firmware that was not for the first platform in the YAML.