Friday, May 9, 2025
1 change · saas-18.1
Enhancements to existing features
Connecting to an IoT Box access point now more reliably prompts users, especially on Android devices, to sign in instead of requiring them to manually open a web page. The underlying web server setup was also simplified to make the IoT Box image easier to maintain.
Original PR description
Before this commit, when connecting to the IoT box access point on some devices (e.g. Android phone), there would be no popup to sign in to the network. Instead, the user would have to manually navigate to any URL, which would then load the IoT box homepage. After this commit, all HTTP requests on the access point will send a 301 redirect to the IoT box homepage. When Android sees that it gets redirected, it interprets this as a login page and triggers the 'sign-in' popup. In this commit we are also refactoring the structure of the nginx config files. Previously, we had configuration both in `/etc/nginx/nginx.conf` and `/etc/nginx/sites-enabled/default`. Now, we are using the modern structure of simply adding our config in the `/etc/nginx/conf.d/` folder. In addition, some redundant settings were removed to simplify the config. task-4724110 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr