Session timeout feature works now.
This commit is contained in:
@ -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,
|
||||
|
@ -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())
|
||||
|
||||
|
@ -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"}),
|
||||
|
Reference in New Issue
Block a user