]> git.ipfire.org Git - ipfire.org.git/commitdiff
Add more vhosts to the dev namespace.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 10 May 2014 18:51:20 +0000 (20:51 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 10 May 2014 18:51:20 +0000 (20:51 +0200)
webapp/__init__.py

index dc91f33f08b4435fa2118bdca5bc3da0a2a1a0d8..92f32dd2d2ffa5ad375845b854c997fb2f229053 100644 (file)
@@ -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)