FOI-Bioinformatics / nanometa_live

A streamlined workflow and GUI for real-time species identification and pathogen characterization via nanopore sequencing data. Engineered for precision, speed, and user-friendliness, with offline functionality post-initialization.
GNU General Public License v3.0
15 stars 2 forks source link

Enhance Accessibility of Nanometa GUI by Enabling External Network Access #68

Closed druvus closed 9 months ago

druvus commented 9 months ago

Details: The existing code in nanometa_gui.py only allowed the Dash application to be accessible locally, as it was binding to the default 127.0.0.1 interface. This limitation hindered the ability to access the GUI from other machines or within a Docker container setup.

The proposed change (app.run(debug=True, host="0.0.0.0", port=int(config_contents['gui_port']))) explicitly sets the host to 0.0.0.0. This adjustment ensures that the application listens on all network interfaces, thereby facilitating access from external IPs and within containerized environments.

Implications: