Add an API-only mode that hides the server's web UI. Closes #111

This commit is contained in:
Ian Renton
2026-06-09 10:38:16 +01:00
parent cd40cd985d
commit cd30fc765b
17 changed files with 108 additions and 62 deletions

View File

@@ -21,6 +21,7 @@ SERVER_OWNER_CALLSIGN = config["server-owner-callsign"]
WEB_SERVER_PORT = config["web-server-port"]
ALLOW_SPOTTING = config["allow-spotting"]
WEB_UI_OPTIONS = config["web-ui-options"]
API_ONLY_MODE = config.get("api-only-mode", False)
# For ease of config, each spot provider owns its own config about whether it should be enabled by default in the web UI
# but for consistency we provide this to the front-end in web-ui-options because it has no impact outside of the web UI.