From 8fceca0a78d2581e6b230b73b1cad1d9739ca63b Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 10 May 2014 20:51:20 +0200 Subject: [PATCH] Add more vhosts to the dev namespace. --- webapp/__init__.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/webapp/__init__.py b/webapp/__init__.py index dc91f33f..92f32dd2 100644 --- a/webapp/__init__.py +++ b/webapp/__init__.py @@ -128,7 +128,7 @@ class Application(tornado.web.Application): ]) # mirrors.ipfire.org - self.add_handlers(r"mirrors\.ipfire\.org", [ + self.add_handlers(r"mirrors(\.dev)?\.ipfire\.org", [ (r"/", MirrorIndexHandler), (r"/mirror/(.*)", MirrorItemHandler), (r"/lists/pakfire2", MirrorListPakfire2Handler), @@ -149,7 +149,7 @@ class Application(tornado.web.Application): ] + static_handlers) # stasy.ipfire.org - self.add_handlers(r"fireinfo\.ipfire\.org", [ + self.add_handlers(r"fireinfo(\.dev)?\.ipfire\.org", [ (r"/", StasyIndexHandler), (r"/profile/([a-z0-9]{40})", StasyProfileDetailHandler), (r"/vendor/(pci|usb)/([0-9a-f]{4})", StasyStatsVendorDetail), @@ -170,12 +170,12 @@ class Application(tornado.web.Application): ] + static_handlers) # i-use.ipfire.org - self.add_handlers(r"i-use\.ipfire\.org", [ + self.add_handlers(r"i-use(\.dev)?\.ipfire\.org", [ (r"/profile/([a-f0-9]{40})/([0-9]+).png", IUseImage), ]) # tracker.ipfire.org - self.add_handlers(r"(torrent|tracker)\.ipfire\.org", [ + self.add_handlers(r"(torrent|tracker)(\.dev)?\.ipfire\.org", [ (r"/", TrackerIndexHandler), (r"/announce.*", TrackerAnnounceHandler), (r"/scrape", TrackerScrapeHandler), @@ -186,7 +186,7 @@ class Application(tornado.web.Application): # boot.ipfire.org BOOT_STATIC_PATH = os.path.join(self.settings["static_path"], "netboot") - self.add_handlers(r"boot\.ipfire\.org", [ + self.add_handlers(r"boot(\.dev)?\.ipfire\.org", [ (r"/", tornado.web.RedirectHandler, { "url" : "http://www.ipfire.org/download" }), # Configurations @@ -199,7 +199,7 @@ class Application(tornado.web.Application): ]) # nopaste.ipfire.org - self.add_handlers(r"nopaste\.ipfire\.org", [ + self.add_handlers(r"nopaste(\.dev)?\.ipfire\.org", [ (r"/", NopasteIndexHandler), (r"/([\w]{8}-[\w]{4}-[\w]{4}-[\w]{4}-[\w]{12})", NopasteEntryHandler), ] + static_handlers) @@ -214,7 +214,7 @@ class Application(tornado.web.Application): ] + static_handlers) # geoip.ipfire.org - self.add_handlers(r"geoip\.ipfire\.org", [ + self.add_handlers(r"geoip(\.dev)?\.ipfire\.org", [ (r"/", GeoIPHandler), ] + static_handlers) -- 2.47.2