This PR improves configuration options to allow the FreeTAKServer UI to run with more varied configurations, such as behind a reverse proxy, or with the API and webmap on separate domains.
The FreeTAKServer UI is expected to run on port 5000, but has hardcoded calls using the http protocol, which can get blocked for mixed content if the FTS UI is hosted via https. In addition, this PR allows for connecting to FTS API or webmaps hosted via https, as well.
Changes
Adds additional PROTOCOL config variable for the protocol needed for the API endpoint
Adds additional WEBMAPPROTOCOL config variable for the protocol needed for the webmap endpoint
Whitelists CORS for API endpoint and webmap endpoint
Please don't hesitate to give feedback or commentary on these changes! My python is a bit rusty, so I'm not sure if there's anything that I missed. Thank you!
Overview
This PR improves configuration options to allow the FreeTAKServer UI to run with more varied configurations, such as behind a reverse proxy, or with the API and webmap on separate domains.
The FreeTAKServer UI is expected to run on port 5000, but has hardcoded calls using the http protocol, which can get blocked for mixed content if the FTS UI is hosted via https. In addition, this PR allows for connecting to FTS API or webmaps hosted via https, as well.
Changes
PROTOCOL
config variable for the protocol needed for the API endpointWEBMAPPROTOCOL
config variable for the protocol needed for the webmap endpointRelated PRs
Please don't hesitate to give feedback or commentary on these changes! My python is a bit rusty, so I'm not sure if there's anything that I missed. Thank you!