functionland / go-fula

Client-server stack for Web3! Turn your Raspberry Pi to a BAS server in minutes and enjoy the freedom of decentralized Web with a superior user experience!
MIT License
13 stars 6 forks source link

Hotspot optimization #160

Closed ehsan6sha closed 1 year ago

ehsan6sha commented 1 year ago

This PR achieves the below: 1- ensures all wifis are disconnected before activating hotspot as it sometimes causes Android devices not being able to connect to hotspot if there are active wifis on the backend 2- corrected .env variable and add ota_version 3- added a restartNeeded flag to communicate to Front end whenever a restart is required (e.g and update needs a restart) 4- implemented reboot and partition through file monitoring as we do not have acces to host level methods inside docker 5- fixed hotspot server address to 10.42.0.1 6- added enpoint for partition (partitions the ssd and nvme) and delete-fula-config (delete config.yaml) 7- made fula.config path a dynamic env variable instead of fixed, with default to /internal/config.yaml