from ui_modules import *
from . import blog
+from . import location
BASEDIR = os.path.join(os.path.dirname(__file__), "..")
"format_month_name" : self.format_month_name,
},
"ui_modules" : {
+ # Blog
"BlogHistoryNavigation": blog.HistoryNavigationModule,
"BlogList" : blog.ListModule,
"BlogPost" : blog.PostModule,
"BlogPosts" : blog.PostsModule,
+ # Location
+ "Map" : MapModule,
+
# Old modules
"Advertisement" : AdvertisementModule,
"DonationBox" : DonationBoxModule,
"DonationInputBox" : DonationInputBoxModule,
"DownloadButton" : DownloadButtonModule,
"LanguageName" : LanguageNameModule,
- "Map" : MapModule,
"Menu" : MenuModule,
"MirrorItem" : MirrorItemModule,
"MirrorsTable" : MirrorsTableModule,
(r"/view/(.*)", NopasteViewHandler),
] + authentication_handlers)
+ # location.ipfire.org
+ self.add_handlers(r"location(\.dev)?\.ipfire\.org", [
+ (r"/", location.IndexHandler),
+ (r"/lookup/(.+)", location.LookupHandler),
+ ])
+
# geoip.ipfire.org
self.add_handlers(r"geoip(\.dev)?\.ipfire\.org", [
- (r"/", GeoIPHandler),
+ (r"/", tornado.web.RedirectHandler, { "url" : "https://location.ipfire.org/" }),
])
# talk.ipfire.org