Session timeout feature works now.

This commit is contained in:
Marat Fayzullin
2023-01-04 22:52:41 -05:00
parent d5e64e2dc0
commit d6e25e08b6
6 changed files with 32 additions and 4 deletions

View File

@ -160,6 +160,8 @@ defaultConfig = PropertyLayer(
google_maps_api_key="",
map_position_retention_time=2 * 60 * 60,
callsign_url="https://www.qrzcq.com/call/{}",
usage_policy_url="policy",
session_timeout=0,
decoding_queue_workers=2,
decoding_queue_length=10,
wsjt_decoding_depth=3,

View File

@ -43,3 +43,9 @@ class MapController(WebpageController):
def indexAction(self):
# TODO check if we have a google maps api key first?
self.serve_template("map.html", **self.template_variables())
class PolicyController(WebpageController):
def indexAction(self):
self.serve_template("policy.html", **self.template_variables())

View File

@ -1,5 +1,5 @@
from owrx.controllers.status import StatusController
from owrx.controllers.template import IndexController, MapController
from owrx.controllers.template import IndexController, MapController, PolicyController
from owrx.controllers.feature import FeatureController
from owrx.controllers.assets import OwrxAssetsController, AprsSymbolsController, CompiledAssetsController
from owrx.controllers.websocket import WebSocketController
@ -94,6 +94,7 @@ class Router(object):
StaticRoute("/ws/", WebSocketController),
RegexRoute("^(/favicon.ico)$", OwrxAssetsController),
StaticRoute("/map", MapController),
StaticRoute("/policy", PolicyController),
StaticRoute("/features", FeatureController),
StaticRoute("/api/features", ApiController),
StaticRoute("/metrics", MetricsController, options={"action": "prometheusAction"}),