OpenTAKServer icon indicating copy to clipboard operation
OpenTAKServer copied to clipboard

Support for environment variables

Open nerdalertdk opened this issue 1 year ago • 1 comments

To continue #23

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/

nerdalertdk avatar Apr 24 '24 08:04 nerdalertdk

This would keeping our config file easy to maintain, only have the options we changed

# If HOSTNAME doesn't exist, presume local development and return localhost
print(os.environ.get('HOSTNAME', 'localhost')

https://medium.com/dopplerhq/using-environment-variables-in-python-for-app-configuration-and-secrets-50f01ea1fd3d

nerdalertdk avatar Apr 24 '24 12:04 nerdalertdk

Fixed it and support for this in my docker image so closing this

nerdalertdk avatar Jan 25 '25 22:01 nerdalertdk