]> git.ipfire.org Git - pbs.git/commitdiff
hub: Redirect lost users to pakfire.ipfire.org
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 4 Jan 2019 12:58:19 +0000 (12:58 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 4 Jan 2019 12:58:19 +0000 (12:58 +0000)
Also calms down monitoring that doesn't like receiving 404.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/hub/__init__.py

index d8fe3888454a72b98bc753b96d156a66e5ad06a2..1037e420d626732f3a2ee2375d4ea2539ad4c59e 100644 (file)
@@ -10,7 +10,7 @@ class Application(tornado.web.Application):
        def __init__(self, **settings):
                tornado.web.Application.__init__(self, [
                        # Redirect strayed users.
-                       #(r"/", handlers.RedirectHandler),
+                       (r"/", tornado.web.RedirectHandler, { "url" : "https://pakfire.ipfire.org/" }),
 
                        # Test handlers
                        (r"/noop", handlers.NoopHandler),