brian7704 / OpenTAKServer

Yet another open source TAK Server for ATAK, iTAK, and WinTAK
GNU General Public License v3.0
41 stars 6 forks source link

Add OTS_LISTENER_IP option #23

Closed nerdalertdk closed 2 months ago

nerdalertdk commented 2 months ago

Hi

For some of us that's trying to do more complex setups, it would be helpful if we could bind flask app to 0.0.0.0 or an ip instead of 127.0.0.1

OTS_LISTENER_IP=x.x.x.x

https://github.com/brian7704/OpenTAKServer/blob/9250cea242f97b76e2c8b9833623512e9195cb9d/opentakserver/app.py#L291C62-L291C79

nerdalertdk commented 2 months ago

If you are gonna anything big with the config system, please consider support for ENV it even support a default value 👍

https://www.geeksforgeeks.org/python-os-getenv-method/

brian7704 commented 2 months ago

I'll add the OTS_LISTENER_IP setting to the config. I checked the Flask documentation and loading the config from environment variables seems doable. Can you please open a separate issue for that?

brian7704 commented 2 months ago

OTS_LISTENER_IP has been added and will be included in the next release. You can install it now using pip install git+https://github.com/brian7704/OpenTAKServer.git@f01413d