Closed hickey closed 6 months ago
@hickey can you please contact me in Discord?
The new configuration module in FTS is nearing completion. It is expected that a copy of this module will be used in the UI code to provide better and a configuration mechanism that is consistent with FTS.
The configuration code is being worked on in https://github.com/FreeTAKTeam/FreeTakServer/pull/386.
May be OBE due to the work on FreeTAKTeam/FreeTakServer#388, #43 , and #42 .
New containerization strategy involves symlinking the necessary files into the host-provided container volume allowing for user configuration from there according to the normal FTS methods.
@RadioAndrea I think we can close this?
The following comments are from a comment that I made on https://github.com/FreeTAKTeam/FreeTakServer/issues/324. I went on a bit of a rant in that issue before I realized that I was going into a lot of things that did not pertain to the problem that https://github.com/FreeTAKTeam/FreeTakServer/issues/324 was filed against (although their are some related items).
It has taken me a bit longer to make the time to create an issue concerning some of the things I was going off on and after contemplating where the problem is I think that most of the problem resides in the UI code. Hence this issue.
So from my comment in that issue:
....
A bit of these comments are a little bit more specific to https://github.com/FreeTAKTeam/FreeTakServer/issues/324, but I think it provides some of the context for this issue.
I should also state that I have submitted a PR (https://github.com/FreeTAKTeam/FreeTakServer/pull/376) to rework the configuration module in the
FreeTAKServer
code and I am thinking that something similar should be done for theUI
code.The way that the
UI
code gets configured is to set all the values statically in a Python file that gets read in when the code starts up. While that is great for having the configuration already processed, it is really a bad experience for trying to run the code in different environments or if there needs to be a different configuration used on some occasion.In my case I was trying to get the Docker version of
FreeTAKServer
running and having two different configuration mechanisms in the same Docker container is a bit of a nightmare. Actually, the existing Docker container does not seem to have any real configuration of theUI
code that can be done.I would suggest that the
UI
code be changed to read in a YAML file similar to the one used forFreeTAKServer
. Actually the same config could/should be used. Since some of the values (specifically several of the network addressing settings) are used by both code bases it would make sense to use the same key values for both projects.This would allow a single configuration file to be created and fed to both services (if they are running on different machines) or if both services are running in the Docker or similar environment then the configuration is just passed in once.