FreeTAKTeam / FreeTAKHub-Installation

FreeTAKHub-Installation
Eclipse Public License 2.0
33 stars 29 forks source link

Update configuration files upon installation with Explicit IP Address #114

Open phreed opened 3 months ago

phreed commented 3 months ago

Identify and correct all places where the FTS IP addres, as provided by the --ip-addr argument, needs to be set.

What other configuration files are not properly configured?

phreed commented 3 months ago

Regarding the issue with ip-addr on the certificates.

"When I add users, it looks like their Certs are being generated with the current DHCP assigned LAN IP address instead of the custom IP address that I fed into the ZTI installer." -- Slevin

@ghosty says: https://github.com/FreeTAKTeam/FreeTakServer/blob/master/FreeTAKServer/core/util/certificate_generation.py is responsible for basically all cert gen.

In it I see two functions:

These are used by:

Which all seem to use server_address=config.UserConnectionIP which comes from https://github.com/FreeTAKTeam/FreeTakServer/blob/fff91b109f54630753f7e410e71c36afec0825de/FreeTAKServer/core/services/RestAPI.py#L1465 MainConfig.py

brothercorvo commented 3 months ago

Correct